forEachIndex

inline fun SparseMatrix<*>.forEachIndex(action: (Int, Int) -> Unit)

Perform the action for each index in the (sparse) matrix. This skips sparse indices.


inline fun Matrix<*>.forEachIndex(action: (Int, Int) -> Unit)

Perform the action for each index in the matrix. This version uses the non-sparse nature of the matrix.