nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/ops/transforms/Transforms.java
public static INDArray max(INDArray first, INDArray second, boolean dup) {
        if (dup) {
            first = first.dup();
        }
        return exec(new OldMax(second, first, first, first.length()));
    }
public static INDArray max(INDArray first, INDArray second, boolean dup) {
        if (dup) {
            first = first.dup();
        }
        return exec(new OldMax(second, first, first, first.length()));
    }
public static INDArray max ( INDArray first , INDArray second , boolean dup ) { if ( dup ) { first = first . dup ( ) ; } return exec ( new OldMax ( second , first , first , first . length ( ) ) ) ; }
Element wise maximum function between 2 INDArrays

@param first
@param second
@param dup
@return
Element wise maximum function between 2 INDArrays