nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/complex/BaseComplexNDArray.java
@Override
    public IComplexNDArray epsi(INDArray other) {
        IComplexNDArray linear = linearView();

        if (other instanceof IComplexNDArray) {
            IComplexNDArray otherComplex = (IComplexNDArray) other;
            IComplexNDArray otherComplexLinear = otherComplex.linearView();

            for (int i = 0; i < linearView().length(); i++) {
                IComplexNumber n = linear.getComplex(i);
                IComplexNumber otherComplexNumber = otherComplexLinear.getComplex(i);
                double real = n.absoluteValue().doubleValue();
                double otherAbs = otherComplexNumber.absoluteValue().doubleValue();
                double diff = Math.abs(real - otherAbs);
                if (diff <= Nd4j.EPS_THRESHOLD)
                    linear.putScalar(i, Nd4j.createDouble(1, 0));
                else
                    linear.putScalar(i, Nd4j.createDouble(0, 0));
            }


        }

        return this;

    }
@Override
    public IComplexNDArray epsi(INDArray other) {
        IComplexNDArray linear = linearView();

        if (other instanceof IComplexNDArray) {
            IComplexNDArray otherComplex = (IComplexNDArray) other;
            IComplexNDArray otherComplexLinear = otherComplex.linearView();

            for (int i = 0; i < linearView().length(); i++) {
                IComplexNumber n = linear.getComplex(i);
                IComplexNumber otherComplexNumber = otherComplexLinear.getComplex(i);
                double real = n.absoluteValue().doubleValue();
                double otherAbs = otherComplexNumber.absoluteValue().doubleValue();
                double diff = Math.abs(real - otherAbs);
                if (diff <= Nd4j.EPS_THRESHOLD)
                    linear.putScalar(i, Nd4j.createDouble(1, 0));
                else
                    linear.putScalar(i, Nd4j.createDouble(0, 0));
            }


        }

        return this;

    }
@ Override public IComplexNDArray epsi ( INDArray other ) { IComplexNDArray linear = linearView ( ) ; if ( other instanceof IComplexNDArray ) { IComplexNDArray otherComplex = ( IComplexNDArray ) other ; IComplexNDArray otherComplexLinear = otherComplex . linearView ( ) ; for ( int i = 0 ; i < linearView ( ) . length ( ) ; i ++ ) { IComplexNumber n = linear . getComplex ( i ) ; IComplexNumber otherComplexNumber = otherComplexLinear . getComplex ( i ) ; double real = n . absoluteValue ( ) . doubleValue ( ) ; double otherAbs = otherComplexNumber . absoluteValue ( ) . doubleValue ( ) ; double diff = Math . abs ( real - otherAbs ) ; if ( diff <= Nd4j . EPS_THRESHOLD ) linear . putScalar ( i , Nd4j . createDouble ( 1 , 0 ) ) ; else linear . putScalar ( i , Nd4j . createDouble ( 0 , 0 ) ) ; } } return this ; }
In place epsilon equals than comparison:
If the given number is less than the
comparison number the item is 0 otherwise 1

@param other the number to compare
@return
In place epsilon equals than comparison : If the given number is less than the comparison number the item is 0 otherwise 1