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

Method testSet

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

Test of set method, of class DenseMatrix.

()

Source from the content-addressed store, hash-verified

617 * Test of set method, of class DenseMatrix.
618 */
619 @Test
620 public void testSet()
621 {
622 DenseMatrix toSet = new DenseMatrix(A.rows(), A.cols());
623
624 for(int i = 0; i < A.rows(); i++)
625 for(int j = 0; j < A.cols(); j++)
626 toSet.set(i, j, A.get(i, j));
627
628 assertEquals(A, toSet);
629 }
630
631 /**
632 * Test of rows method, of class DenseMatrix.

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