nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/BaseNDArrayFactory.java
@Override
    public IComplexNDArray createComplex(double[] data) {
        assert data.length
                        % 2 == 0 : "Length of data must be even. A complex ndarray is made up of pairs of real and imaginary components";
        return createComplex(data, new int[] {1, data.length / 2});
    }
@Override
    public IComplexNDArray createComplex(double[] data) {
        assert data.length
                        % 2 == 0 : "Length of data must be even. A complex ndarray is made up of pairs of real and imaginary components";
        return createComplex(data, new int[] {1, data.length / 2});
    }
@ Override public IComplexNDArray createComplex ( double [ ] data ) { assert data . length % 2 == 0 : "Length of data must be even. A complex ndarray is made up of pairs of real and imaginary components" ; return createComplex ( data , new int [ ] { 1 , data . length / 2 } ) ; }
Creates an ndarray with the specified data

@param data the number of columns in the row vector
@return ndarray
Creates an ndarray with the specified data