code: public double[][] toDenseArray() {
          double[][] m = new double[rows][cols];
          for (int r = 0; r < rows; ++r) {
              m[r] = sparseMatrix[r].toArray();
          }
          return m;
      }
docs: {@inheritDoc}