MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testZeroOut

Method testZeroOut

JSAT/test/jsat/linear/SparseMatrixTest.java:1055–1064  ·  view source on GitHub ↗

Test of zeroOut method, of class SparseMatrix.

()

Source from the content-addressed store, hash-verified

1053 * Test of zeroOut method, of class SparseMatrix.
1054 */
1055 @Test
1056 public void testZeroOut()
1057 {
1058 System.out.println("zeroOut");
1059 A.zeroOut();
1060 assertEquals(0, A.nnz());
1061 for(int i = 0; i < A.rows(); i++)
1062 for(int j = 0; j < A.cols(); j++)
1063 assertEquals(0.0, A.get(i, j), 1e-20);
1064 }
1065
1066 /**
1067 * Test of clone method, of class SparseMatrix.

Callers

nothing calls this directly

Calls 5

zeroOutMethod · 0.45
nnzMethod · 0.45
rowsMethod · 0.45
colsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected