operator * method

Matrix operator *(
  1. dynamic other
)

Multiplies two vectors, note the return value is a Matrix. If you need a scalar result add 0, and if you need the Vector result add .toVector()

Scalar Result

Vector a = Vector.fillRow(3, 3.0);
Vector b = Vector.fillColumn(3, 3.0);
double v = ( a * b )[0][0];
print(v);

prints "27"

Vector Result

final Matrix a = Matrix([[1.0, 2.0, 3.0],[2.0,3.0,4.0]]);
final Vector b = Vector.fillColumn(3, 3.0);
final Vector result = ( a * b ).toVector();
print(result);

Will print

[
       18.0,
       27.0
]

Implementation

Matrix operator *(dynamic other) {
  return this._matrix * other;
}