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

Method testArrayCopy

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

Test of arrayCopy method, of class SparseVector.

()

Source from the content-addressed store, hash-verified

724 * Test of arrayCopy method, of class SparseVector.
725 */
726 @Test
727 public void testArrayCopy()
728 {
729 System.out.println("arrayCopy");
730
731 double[] xArray = x.arrayCopy();
732
733 for(int i = 0; i < x.length(); i++)
734 assertEquals(x.get(i), xArray[i], 0.0);
735 }
736
737 /**
738 * Test of applyFunction method, of class SparseVector.

Callers

nothing calls this directly

Calls 3

arrayCopyMethod · 0.45
lengthMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected