diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-02-23 17:51:40 +0300 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-02-23 17:51:40 +0300 |
commit | 6e01780541bfcddca87503ee2af15193ce3642ff (patch) | |
tree | bacb4e1ec373747f09b87712220a0e1be25d8c12 /Eigen/src/Core/GenericPacketMath.h | |
parent | 939f0327b640c3f6ebb712a4b1237b7d5c0b49bc (diff) |
fix a couple of issues with pcplxflip
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rw-r--r-- | Eigen/src/Core/GenericPacketMath.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 052aa8330..8bc8fb535 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -225,6 +225,11 @@ template<typename Packet> inline typename unpacket_traits<Packet>::type predux_m template<typename Packet> inline Packet preverse(const Packet& a) { return a; } + +/** \internal \returns \a a with real and imaginary part flipped (for complex type only) */ +template<typename Packet> inline Packet pcplxflip(const Packet& a) +{ return Packet(imag(a),real(a)); } + /************************** * Special math functions ***************************/ |