Prototypes | Header File(s) | |
RWMathVec<double> |
imag(const RWMathVec<DComplex>&) |
<rw/math/mathvec.h> |
RWGenMat<double> |
imag(const RWGenMat<DComplex>&) |
<rw/math/genmat.h> |
RWMathArray<double> |
imag(const RWMathArray<DComplex>&) |
<rw/math/mtharray.h> |
Takes complex x as an argument and returns y containing the imaginary parts yi = Im(xi). With most versions of complex, the results can be used as an l value:
RWMathVec<DComplex> v(5, 0); // (0, 0), (0, 0), ... imag(v) = 1.0; // (0, 1), (0, 1), ...