RealMatrix { public int[] getDimensions() { code.clearOnline(); rcaller.runAndReturnResultOnline(this.name); return (rcaller.getParser().getDimensions(this.name)); } RealMatrix(RService service);  RealMatrix(String pathToR, String name); RCaller getRCaller(); void setData(double[][] data); int[] getDimensions(); double[][] getData(); double[] getColumn(int column); double[][] getColumns(int[] columns); double[] getRow(int row); double[][] getRows(int[] rows); double getDeterminant(); RealMatrix getInverse(); double[] getDiagonal(); double getTrace(); RealMatrix getTranspose(); RealMatrix product(double[][] another); RealMatrix product(RealMatrix another); RealMatrix sum(double[][] another); RealMatrix sum(RealMatrix another); RealMatrix productWithScaler(double scaler); RealMatrix subtract(double[][] another); RealMatrix subtract(RealMatrix another); double[] getEigenValues(); RealMatrix getEigenVectors(); SVD getSVD();  }
@Test public void testGetDimensions() { System.out.print("getDimensions: "); int[] dims = rm.getDimensions(); assertEquals(dims[0], matrix.length); assertEquals(dims[1], matrix[0].length); }