nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/complex/BaseComplexNDArray.java
@Override
    public IComplexNDArray ravel() {

        if (length() >= Integer.MAX_VALUE)
            throw new IllegalArgumentException("length() can not be >= Integer.MAX_VALUE");
        IComplexNDArray ret = Nd4j.createComplex((int) length(), ordering());
        IComplexNDArray linear = linearView();
        for (int i = 0; i < length(); i++) {
            ret.putScalar(i, linear.getComplex(i));
        }

        return ret;


    }
@Override
    public IComplexNDArray ravel() {

        if (length() >= Integer.MAX_VALUE)
            throw new IllegalArgumentException("length() can not be >= Integer.MAX_VALUE");
        IComplexNDArray ret = Nd4j.createComplex((int) length(), ordering());
        IComplexNDArray linear = linearView();
        for (int i = 0; i < length(); i++) {
            ret.putScalar(i, linear.getComplex(i));
        }

        return ret;


    }
Flattens the array for linear indexing

@return the flattened version of this array