operator unary- method

Tensor operator unary-()

Implementation

Tensor operator -() {
  // Negation is just 0.0 - this
  final zero = Tensor.fill(shape, 0.0);
  return zero - this;
}