nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/complex/BaseComplexNDArray.java
protected void copyRealTo(INDArray arr) {
        INDArray linear = arr.linearView();
        IComplexNDArray thisLinear = linearView();
        if (arr.isScalar())
            arr.putScalar(0, getReal(0));
        else
            for (int i = 0; i < linear.length(); i++) {
                arr.putScalar(i, thisLinear.getReal(i));
            }

    }
protected void copyRealTo(INDArray arr) {
        INDArray linear = arr.linearView();
        IComplexNDArray thisLinear = linearView();
        if (arr.isScalar())
            arr.putScalar(0, getReal(0));
        else
            for (int i = 0; i < linear.length(); i++) {
                arr.putScalar(i, thisLinear.getReal(i));
            }

    }
Copy real numbers to arr
@param arr the arr to copy to