TransformedMatrixExtension<T> extension

on

Methods

map<S>(S callback(int row, int col, T value), [DataType<S>? dataType]) Matrix<S>
Returns a read-only view on this Matrix with all its elements lazily converted by calling the provided transformation callback.
transform<S>(S read(int row, int col, T value), {T write(int row, int col, S value)?, DataType<S>? dataType}) Matrix<S>
Returns a view on this Matrix with all its elements lazily converted by calling the provided read transformation. An optionally provided write transformation enables writing to the returned matrix.