operator * method Null safety

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

Calculates element-wise product.

The formula for result element i is:

elements[i] * right.elements[i];

Throws ArgumentError if tensor shapes are not equal.

Implementation

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