public static INDArray max(INDArray ndArray, double k, boolean dup) {
        return exec(dup ? new ScalarMax(ndArray, null, ndArray.ulike(), k) : new ScalarMax(ndArray, k));
    }
public static INDArray max ( INDArray ndArray , double k , boolean dup ) { return exec ( dup ? new ScalarMax ( ndArray , null , ndArray . ulike ( ) , k ) : new ScalarMax ( ndArray , k ) ) ; }
Maximum function with a scalar

@param ndArray tbe ndarray
@param k
@param dup
@return