code: public static Basic1DMatrix constant(int rows, int columns, double constant) {
          double[] array = new double[rows * columns];
          Arrays.fill(array, constant);
  
          return new Basic1DMatrix(rows, columns, array);
      }
docs: Creates a constant {@link Basic1DMatrix} of the given shape and {@code value}.