-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Here is a failing test from parallel colt 0.10.0
@Test
public void testLargeSparseSum() {
int size = 110000;
DoubleMatrix2D m = new SparseDoubleMatrix2D(size, size);
int i = 100000;
assertEquals(0, m.viewRow(i).zSum(), 0.0001);
m.set(i, i, 5);
assertEquals(5, m.viewRow(i).zSum(), 0.0001);
}expected:<5.0> but was:<0.0>
m.viewRow(i).toString() :
1 x 110000 sparse matrix, nnz = 0
Strangely enough, columns work:
m.viewColumn(i).toString()
1 x 110000 sparse matrix, nnz = 1
(100000) 5.0
.get(i,i) does work as well
Metadata
Metadata
Assignees
Labels
No labels