operator - method

Vector operator -(
  1. Vector other
)

Subtracts two vectors

Vector a = Vector.fillRow(3, 3.0);
Vector b = Vector.fillRow(3, 1.0);
print( a + b );

prints

[2.0,2.0,2.0]

Implementation

Vector operator -(Vector other) {
  return Vector._(this._matrix - other._matrix, _vectorType);
}