code: public static Basic2DMatrix from1DArray(int rows, int columns, double[] array) {
          double[][] array2D = new double[rows][columns];
  
          for (int i = 0; i < rows; i++) {
              System.arraycopy(array, i * columns, array2D[i], 0, columns);
          }
  
          return new Basic2DMatrix(array2D);
      }
docs: Creates a {@link Basic2DMatrix} of the given 1D {@code array} with
  copying the underlying array.