toSizedMatrix

fun <R : Nat, C : Nat> toSizedMatrix(rows: R, cols: C): Matrix<R, C>(source)

Returns a Matrix with the same dimensions as this matrix. The dimensions are checked at runtime.