map<S> method

Matrix<S> map<S>(
  1. S callback(
    1. int row,
    2. int col,
    3. T value
    ), [
  2. DataType<S>? dataType
])

Returns a read-only view on this Matrix with all its elements lazily converted by calling the provided transformation callback.

Implementation

Matrix<S> map<S>(S Function(int row, int col, T value) callback,
        [DataType<S>? dataType]) =>
    transform<S>(callback, dataType: dataType);