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

Method testSet

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

Test of set method, of class TestImp.

()

Source from the content-addressed store, hash-verified

756 * Test of set method, of class TestImp.
757 */
758 @Test
759 public void testSet()
760 {
761 TestImp toSet = new TestImp(A.rows(), A.cols());
762
763 for(int i = 0; i < A.rows(); i++)
764 for(int j = 0; j < A.cols(); j++)
765 toSet.set(i, j, A.get(i, j));
766
767 assertEquals(A, toSet);
768 }
769
770 /**
771 * Test of rows method, of class TestImp.

Callers 1

testGetMethod · 0.95

Calls 4

setMethod · 0.95
rowsMethod · 0.45
colsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected