getSubMatrix

fun getSubMatrix(selectedRows: IntArray, selectedColumns: IntArray): RealMatrix
fun getSubMatrix(selectedRows: IntRange, selectedColumns: IntRange): RealMatrix

Returns a submatrix of the complete matrix by only selecting the selectedRows and selectedColumns.

Return

submatrix

Parameters

selectedRows

selected row indices

selectedColumns

selected column indices