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

Method testZeroOut

JSAT/test/jsat/linear/DenseMatrixTest.java:725–736  ·  view source on GitHub ↗

Test of zeroOut method, of class DenseMatrix.

()

Source from the content-addressed store, hash-verified

723 * Test of zeroOut method, of class DenseMatrix.
724 */
725 @Test
726 public void testZeroOut()
727 {
728 System.out.println("zeroOut");
729
730 Matrix test = C.clone();
731 test.zeroOut();
732
733 for(int i = 0; i < test.rows(); i++)
734 for(int j = 0; j < test.cols(); j++)
735 assertEquals(0, test.get(i, j), 0);
736 }
737
738 /**
739 * Test of lup method, of class DenseMatrix.

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