code: public double[][] toDenseArray() {
          double[][] arr = new double[columns()][0];
          int cols = columns();
          for (int col = 0; col < cols; ++col)
              arr[col] = m.getRow(col);
          return arr;
      }
docs: {@inheritDoc}