api / koma.matrix / Matrix / filterRows


open fun filterRows(f: (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.


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