add abstract method

void add(
  1. Tensor<T> right
)

Calculates sum of two tensors.

Element i is calculated with the formula:

x[i] = x[i] + right[i];

Throws ArgumentError if tensor shapes are not equal.

Implementation

void add(Tensor<T> right);