@ 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