@Test
public void testTranspose() {

  Matrix transpose = test.transpose();
  assertEquals("rows", test.columnSize(), transpose.rowSize());
  assertEquals("cols", test.rowSize(), transpose.columnSize());
  for (int row = 0; row < test.rowSize(); row++) {
    for (int col = 0; col < test.columnSize(); col++) {
      assertEquals("value[" + row + "][" + col + ']',
          test.getQuick(row, col), transpose.getQuick(col, row), EPSILON);
    }
  }
}