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][realComponents[0].length];
        for (int i = 0; i < realComponents.length; i++)
            for (int j = 0; j < realComponents[i].length; j++)
                ret[i][j] = Nd4j.createComplexNumber(realComponents[i][j], 0);
        return ret;
    }
public static IComplexNumber[][] complexNumbersFor(float[][] realComponents) {
        IComplexNumber[][] ret = new IComplexNumber[realComponents.length][realComponents[0].length];
        for (int i = 0; i < realComponents.length; i++)
            for (int j = 0; j < realComponents[i].length; j++)
                ret[i][j] = Nd4j.createComplexNumber(realComponents[i][j], 0);
        return ret;
    }
public static IComplexNumber [ ] [ ] complexNumbersFor ( float [ ] [ ] realComponents ) { IComplexNumber [ ] [ ] ret = new IComplexNumber [ realComponents . length ] [ realComponents [ 0 ] . length ] ; for ( int i = 0 ; i < realComponents . length ; i ++ ) for ( int j = 0 ; j < realComponents [ i ] . length ; j ++ ) ret [ i ] [ j ] = Nd4j . createComplexNumber ( realComponents [ i ] [ j ] , 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