code: public double[][] getArray()
      {
          double[][] result = new double[getM()][];
          
          for ( int m = 0; m < getM(); m++ )
          {
             result[m] = new double[ getN() ];
  
             for ( int n = 0; n < getN(); n++ )
             {               
                 result[m][n] = getReal(m,n);
             }
          }
          return result;
      }
docs: Gets two-dimensional real array.
  
  @return - 2D real array