nd4j-buffer/src/main/java/org/nd4j/linalg/api/complex/BaseComplexFloat.java
@Override
    public IComplexNumber divi(IComplexNumber c, IComplexNumber result) {
        float d = c.realComponent().floatValue() * c.realComponent().floatValue()
                        + c.imaginaryComponent().floatValue() * c.imaginaryComponent().floatValue();
        float newR = (realComponent() * c.realComponent().floatValue()
                        + imaginaryComponent() * c.imaginaryComponent().floatValue()) / d;
        float newI = (imaginaryComponent() * c.realComponent().floatValue()
                        - realComponent() * c.imaginaryComponent().floatValue()) / d;
        return result.set(newR, newI);
    }
@Override
    public IComplexNumber divi(IComplexNumber c, IComplexNumber result) {
        float d = c.realComponent().floatValue() * c.realComponent().floatValue()
                        + c.imaginaryComponent().floatValue() * c.imaginaryComponent().floatValue();
        float newR = (realComponent() * c.realComponent().floatValue()
                        + imaginaryComponent() * c.imaginaryComponent().floatValue()) / d;
        float newI = (imaginaryComponent() * c.realComponent().floatValue()
                        - realComponent() * c.imaginaryComponent().floatValue()) / d;
        return result.set(newR, newI);
    }
@ Override public IComplexNumber divi ( IComplexNumber c , IComplexNumber result ) { float d = c . realComponent ( ) . floatValue ( ) * c . realComponent ( ) . floatValue ( ) + c . imaginaryComponent ( ) . floatValue ( ) * c . imaginaryComponent ( ) . floatValue ( ) ; float newR = ( realComponent ( ) * c . realComponent ( ) . floatValue ( ) + imaginaryComponent ( ) * c . imaginaryComponent ( ) . floatValue ( ) ) / d ; float newI = ( imaginaryComponent ( ) * c . realComponent ( ) . floatValue ( ) - realComponent ( ) * c . imaginaryComponent ( ) . floatValue ( ) ) / d ; return result . set ( newR , newI ) ; }
Divide two complex numbers, in-place

@param c
@param result
Divide two complex numbers in - place