assertEquals(20.0, a2d.get(0, 1));
assertEquals(30.0, a2d.get(1, 0));
assertEquals(10.0, a2d.get(0, 0));
// Verify new dimensions
assertEquals(newRowIdx + 1, a2d.numRows());
assertEquals(newColIdx + 1, a2d.numColumns(newRowIdx));
}
private static double[][] copy(double[][] a) {
double[][] copy = new double[a.length][];