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

Method testZeroOut

JSAT/test/jsat/linear/GenericMatrixTest.java:864–875  ·  view source on GitHub ↗

Test of zeroOut method, of class TestImp.

()

Source from the content-addressed store, hash-verified

862 * Test of zeroOut method, of class TestImp.
863 */
864 @Test
865 public void testZeroOut()
866 {
867 System.out.println("zeroOut");
868
869 Matrix test = C.clone();
870 test.zeroOut();
871
872 for(int i = 0; i < test.rows(); i++)
873 for(int j = 0; j < test.cols(); j++)
874 assertEquals(0, test.get(i, j), 0);
875 }
876
877 /**
878 * Test of lup method, of class TestImp.

Callers

nothing calls this directly

Calls 5

zeroOutMethod · 0.95
rowsMethod · 0.95
colsMethod · 0.95
getMethod · 0.95
cloneMethod · 0.65

Tested by

no test coverage detected