operator * method

Matrix<T> operator *(
  1. Object other
)

Returns a view of this Matrix multiplied with other.

Implementation

Matrix<T> operator *(/* Matrix<T>|Vector<T>|T */ Object other) {
  if (other is Matrix<T>) {
    return mulMatrix(other);
  } else if (other is Vector<T>) {
    return mulVector(other).columnMatrix;
  } else if (other is T) {
    return mulScalar(other as T);
  } else {
    throw ArgumentError.value(other, 'other', 'Invalid scalar.');
  }
}