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

Method testTranspose

JSAT/test/jsat/linear/MatrixOfVecsTest.java:598–613  ·  view source on GitHub ↗

Test of transpose method, of class DenseMatrix.

()

Source from the content-addressed store, hash-verified

596 * Test of transpose method, of class DenseMatrix.
597 */
598 @Test
599 public void testTranspose()
600 {
601 DenseMatrix CTranspose = new DenseMatrix(new double[][]
602 {
603 {1, 5, 8, 9, 1},
604 {6, 5, 0, 3, 2},
605 {8, 3, 5, 2, 6},
606 {3, 7, 7, 7, 5},
607 {1, 2, 9, 2, 8},
608 {5, 10, 1, 4, 1},
609 {10, 0, 8, 8, 9}
610 } );
611
612 assertEquals(CTranspose, C.transpose());
613 }
614
615 /**
616 * Test of get method, of class DenseMatrix.

Callers

nothing calls this directly

Calls 1

transposeMethod · 0.45

Tested by

no test coverage detected