binaryOperation method

Matrix<T> binaryOperation(
  1. Matrix<T> other,
  2. Map2<T, T, T> operation, {
  3. DataType<T>? dataType,
})

Returns a view of an unary operation.

Implementation

Matrix<T> binaryOperation(Matrix<T> other, Map2<T, T, T> operation,
        {DataType<T>? dataType}) =>
    BinaryOperationMatrix<T>(
        dataType ?? this.dataType, this, other, operation);