code: public static INDArray min(INDArray ndArray, double k, boolean dup) {
          return exec(dup ? new ScalarMin(ndArray, null, ndArray.ulike(), k) : new ScalarMin(ndArray, k));
      }
docs: Minimum function with a scalar
  
  @param ndArray tbe ndarray
  @param k
  @param dup
  @return