operator * method
Returns a view of the element-wise multiplication of this Vector and other
.
Implementation
Vector<T> operator *(/* Vector<T>|T */ Object other) {
if (other is Vector<T>) {
return mulVector(other);
} else if (other is T) {
return mulScalar(other as T);
} else {
throw ArgumentError.value(other, 'other', 'Invalid scalar.');
}
}