stvurkel
03-22-2009, 10:29 PM
Hello everyone,
I have a little problem in NR, may be you have some idea about it.
When we define a complex-valued vector using
Vect_CPLX_DP, the vector elements will have real and imaginary parts.
The problem is, how to pick the real part only or imaginary part only of this complex
vector element and assign it to a variable, if I insist on using complex vector, not
separating it out into two real parts (representing real and imaginary) in the first
place.
I use NR 2nd edition with C++ by the way.
Thanks in advance.
I have a little problem in NR, may be you have some idea about it.
When we define a complex-valued vector using
Vect_CPLX_DP, the vector elements will have real and imaginary parts.
The problem is, how to pick the real part only or imaginary part only of this complex
vector element and assign it to a variable, if I insist on using complex vector, not
separating it out into two real parts (representing real and imaginary) in the first
place.
I use NR 2nd edition with C++ by the way.
Thanks in advance.