code: public static AbstractMatrix getInstance(int rows, int cols, Class<?> cls)
      {
          return new AbstractMatrix(rows, Array.newInstance(cls, rows*cols));
      }
docs: Returns new DoubleMatrix initialized to zeroes.
  @param rows
  @param cols
  @return