nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/complex/BaseComplexNDArray.java
@Override
    public IComplexNDArray assign(IComplexNDArray arr) {
        if (!arr.isScalar())
            LinAlgExceptions.assertSameLength(this, arr);
        IComplexNDArray linear = linearView();
        IComplexNDArray otherLinear = arr.linearView();
        for (int i = 0; i < linear.length(); i++) {
            linear.putScalar(i, otherLinear.getComplex(i));
        }


        return this;
    }
@Override
    public IComplexNDArray assign(IComplexNDArray arr) {
        if (!arr.isScalar())
            LinAlgExceptions.assertSameLength(this, arr);
        IComplexNDArray linear = linearView();
        IComplexNDArray otherLinear = arr.linearView();
        for (int i = 0; i < linear.length(); i++) {
            linear.putScalar(i, otherLinear.getComplex(i));
        }


        return this;
    }
Assign all of the elements in the given
ndarray to this ndarray

@param arr the elements to assign
@return this