operator + method

Vector operator +(
  1. Vector other
)

Adds two vectors

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

prints

[3.0,3.0,3.0]

Implementation

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