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

Method testClone

JSAT/test/jsat/linear/SparseMatrixTest.java:1069–1080  ·  view source on GitHub ↗

Test of clone method, of class SparseMatrix.

()

Source from the content-addressed store, hash-verified

1067 * Test of clone method, of class SparseMatrix.
1068 */
1069 @Test
1070 public void testClone()
1071 {
1072 System.out.println("clone");
1073 Matrix AClone = A.clone();
1074 assertTrue(AClone.equals(A));
1075 assertFalse(AClone == A);
1076 A.zeroOut();
1077 assertFalse(AClone.equals(A));
1078 assertEquals(8, AClone.nnz());
1079 assertEquals(0, A.nnz());
1080 }
1081
1082 @Test
1083 public void testNnz()

Callers

nothing calls this directly

Calls 5

equalsMethod · 0.95
nnzMethod · 0.95
cloneMethod · 0.65
zeroOutMethod · 0.45
nnzMethod · 0.45

Tested by

no test coverage detected