-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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
| valuesList.setSizeRaw(rowPointers[rows]); |
It should look like this line:
ParallelColt/src/main/java/cern/colt/matrix/tdcomplex/impl/SparseRCDComplexMatrix2D.java
Line 1218 in 36a75e6
| 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
Metadata
Metadata
Assignees
Labels
No labels