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