sub abstract method

void sub(
  1. Tensor<T> right
)

Subtracts elements of the arguments.

Element i is calculated with the formula:

x[i] = x[i] - right[i];

Throws ArgumentError if tensor shapes are not equal.

Implementation

void sub(Tensor<T> right);