mulScalar method

Vector<T> mulScalar(
  1. T other
)

Returns a view of the multiplication of this Vector and a scalar.

Implementation

Vector<T> mulScalar(T other) {
  final mul = dataType.field.mul;
  return unaryOperation((value) => mul(value, other));
}