Test of transpose method, of class DenseMatrix.
()
| 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. |