operator + method

  1. @override
Matrix<T> operator +(
  1. Tensor<T> right
)
override

Calculates element-wise sum.

The formula for result element i is result[i] = left[i] + right[i].

The returned tensor will have identical type and tensorShape.

Implementation

@override
Matrix<T> operator +(Tensor<T> right) => super + right as Matrix<T>;