nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/util/ComplexUtil.java
public static IComplexNumber[] complexNumbersFor(float[] realComponents) {
        IComplexNumber[] ret = new IComplexNumber[realComponents.length];
        for (int i = 0; i < realComponents.length; i++)
            ret[i] = Nd4j.createComplexNumber(realComponents[i], 0);
        return ret;
    }
public static IComplexNumber[] complexNumbersFor(float[] realComponents) {
        IComplexNumber[] ret = new IComplexNumber[realComponents.length];
        for (int i = 0; i < realComponents.length; i++)
            ret[i] = Nd4j.createComplexNumber(realComponents[i], 0);
        return ret;
    }
public static IComplexNumber [ ] complexNumbersFor ( float [ ] realComponents ) { IComplexNumber [ ] ret = new IComplexNumber [ realComponents . length ] ; for ( int i = 0 ; i < realComponents . length ; i ++ ) ret [ i ] = Nd4j . createComplexNumber ( realComponents [ i ] , 0 ) ; return ret ; }
Create complex number where the
@param realComponents the real components for the complex
@return the complex numbers based on the given real components
Create complex number where the