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

Method testSet

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

Test of set method, of class VecWithNorm.

()

Source from the content-addressed store, hash-verified

81 * Test of set method, of class VecWithNorm.
82 */
83 @Test
84 public void testSet()
85 {
86 System.out.println("set");
87 int index = 16;
88 double val = Math.PI;
89 x.set(index, val);
90 xNrmd.set(index, val);
91
92 assertEquals(x.pNorm(2), xNrmd.pNorm(2), 1e-6);
93 }
94
95 /**
96 * Test of clone method, of class VecWithNorm.

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
pNormMethod · 0.45

Tested by

no test coverage detected