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

Method testNnz

JSAT/test/jsat/linear/VecWithNormTest.java:220–229  ·  view source on GitHub ↗

Test of nnz method, of class VecWithNorm.

()

Source from the content-addressed store, hash-verified

218 * Test of nnz method, of class VecWithNorm.
219 */
220 @Test
221 public void testNnz()
222 {
223 System.out.println("nnz");
224
225 assertEquals(x.nnz(), xNrmd.nnz());
226 x.set(5, 0.0);
227 xNrmd.set(5, 0.0);
228 assertEquals(x.nnz(), xNrmd.nnz());
229 }
230
231
232}

Callers

nothing calls this directly

Calls 2

nnzMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected