Registered Member
|
Hi,
I have a complex vector V. Is it possible to split V in to vectors Vr and Vi? With Vr containing the real part of the coefficients of V and Vi the imaginary part: V=Vr+ i*Vi Thanks |
Registered Member
|
Are you looking for
|
Registered Member
|
Use V.real() and V.imag() . You can use them both for reading and writing, so you can write expressions like "U.imag() = V.imag()" to copy the imaginary part of V to U.
|
Registered Member
|
thanks that what i was looking for
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell