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

Method testZeroOut

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

Test of zeroOut method, of class VecWithNorm.

()

Source from the content-addressed store, hash-verified

205 * Test of zeroOut method, of class VecWithNorm.
206 */
207 @Test
208 public void testZeroOut()
209 {
210 System.out.println("zeroOut");
211 x.zeroOut();
212 xNrmd.zeroOut();
213
214 assertEquals(x.pNorm(2), xNrmd.pNorm(2), 1e-6);
215 }
216
217 /**
218 * Test of nnz method, of class VecWithNorm.

Callers

nothing calls this directly

Calls 2

zeroOutMethod · 0.45
pNormMethod · 0.45

Tested by

no test coverage detected