api / koma.matrix / Matrix / filterColsIndexed

filterColsIndexed

open fun filterColsIndexed(f: (colIndex:Int, col:Matrix<T>) ->Boolean):Matrix<T>

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

Parameters

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