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

Method testZeroOut

JSAT/test/jsat/linear/SparseVectorTest.java:840–849  ·  view source on GitHub ↗

Test of zeroOut method, of class SparseVector.

()

Source from the content-addressed store, hash-verified

838 * Test of zeroOut method, of class SparseVector.
839 */
840 @Test
841 public void testZeroOut()
842 {
843 System.out.println("zeroOut");
844
845 x.zeroOut();
846
847 for(int i = 0; i < x.length(); i++)
848 assertEquals(0.0, x.get(i), 0.0);
849 }
850
851 /**
852 * Test of getNonZeroIterator method, of class SparseVector.

Callers

nothing calls this directly

Calls 3

zeroOutMethod · 0.45
lengthMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected