public static INDArray eq(INDArray x, INDArray y, INDArray z, int... dimensions) {
        if(dimensions == null) {
            Preconditions.checkArgument(Arrays.equals(x.shape(),y.shape()),getFormattedShapeErrorMessageXy(x,y));
            Preconditions.checkArgument(Arrays.equals(x.shape(),z.shape()),getFormattedShapeErrorMessageXResult(x,z));
            return Nd4j.getExecutioner().execAndReturn(new OldEqualTo(x,y,z,x.length()));
        }
        return Nd4j.getExecutioner().execAndReturn(new BroadcastEqualTo(x,y,z,dimensions));
    }
public static INDArray eq ( INDArray x , INDArray y , INDArray z , int ... dimensions ) { if ( dimensions == null ) { Preconditions . checkArgument ( Arrays . equals ( x . shape ( ) , y . shape ( ) ) , getFormattedShapeErrorMessageXy ( x , y ) ) ; Preconditions . checkArgument ( Arrays . equals ( x . shape ( ) , z . shape ( ) ) , getFormattedShapeErrorMessageXResult ( x , z ) ) ; return Nd4j . getExecutioner ( ) . execAndReturn ( new OldEqualTo ( x , y , z , x . length ( ) ) ) ; } return Nd4j . getExecutioner ( ) . execAndReturn ( new BroadcastEqualTo ( x , y , z , dimensions ) ) ; }
Broadcast equal to op. See: {@link BroadcastEqualTo}