api / koma.matrix / Matrix / selectRows

selectRows

open fun selectRows(vararg idxs:Int):Matrix<T>

Select a set of rows from a matrix to form the rows of a new matrix. For example, if you wanted a new matrix consisting of the first, second, and fifth rows of an input matrix, you would write input.selectRows(0,1,4).

open fun <U :Number> selectRows(idxs:Matrix<U>):Matrix<T>