Remove rows/columns from MatrixStore in OjAlgo

198 Views Asked by At

Is there any convenient and efficient way to remove rows (or columns) from SparseMatrix in ojAlgo? I was trying to retrieve RowView from my matrix and then copy rows that should remain element by element to new matrix but this is not very efficient method.

1

There are 1 best solutions below

4
On

Doing the same thing but using the ElementView2D obtained from the nonzeros() method would be much more efficient.