Hey there,
In sparse complex matricies you get an ArrayIndexOutOfBounds error, when an element (although existing) is removed, because it turns 0.0.
This line is causing the problem:
|
valuesList.setSizeRaw(rowPointers[rows]); |
It should look like this line:
|
valuesList.setSizeRaw(2 * rowPointers[rows]); |
Because it is complex the matrix contains twice as many elements.
If you prefer a PR please let me know.
Ciao
Andi
Hey there,
In sparse complex matricies you get an ArrayIndexOutOfBounds error, when an element (although existing) is removed, because it turns 0.0.
This line is causing the problem:
ParallelColt/src/main/java/cern/colt/matrix/tdcomplex/impl/SparseRCDComplexMatrix2D.java
Line 1232 in 36a75e6
It should look like this line:
ParallelColt/src/main/java/cern/colt/matrix/tdcomplex/impl/SparseRCDComplexMatrix2D.java
Line 1218 in 36a75e6
Because it is complex the matrix contains twice as many elements.
If you prefer a PR please let me know.
Ciao
Andi