@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;


    }
@ 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
Flattens the array for linear indexing