api / koma.matrix / Matrix / filterRowsIndexed

filterRowsIndexed

open fun filterRowsIndexed(f: (rowIndex:Int, row:Matrix<T>) ->Boolean):Matrix<T>

Builds a new matrix with a subset of the rows of this matrix, using only the rows for which the function f returns true.

Parameters

f - A function which takes a row index and a row, and returns true if that row should be included in the output matrix.