mulScalar method

Matrix<T> mulScalar(
  1. T other
)

Returns a view of this Matrix multiplied with other.

Implementation

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