public BigMatrix transpose() {
        return transpose(true);
    }
@Test
    public void testTranspose() {
        BigMatrix t = matrix.transpose();
        assertEquals(Layout.COL_MAJOR, matrix.layout());
        assertEquals(Layout.ROW_MAJOR, t.layout());
        assertEquals(3, t.nrow());
        assertEquals(3, t.ncol());

        assertEquals(0.9, matrix.get(0, 0), 1E-7);
        assertEquals(0.8, matrix.get(2, 2), 1E-7);
        assertEquals(0.5, matrix.get(1, 1), 1E-7);
        assertEquals(0.0, matrix.get(0, 2), 1E-7);
        assertEquals(0.0, matrix.get(2, 0), 1E-7);
        assertEquals(0.4, matrix.get(1, 0), 1E-7);
    }