From 6e01780541bfcddca87503ee2af15193ce3642ff Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 23 Feb 2011 17:51:40 +0300 Subject: fix a couple of issues with pcplxflip --- Eigen/src/Core/GenericPacketMath.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Eigen/src/Core/GenericPacketMath.h') 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 inline typename unpacket_traits::type predux_m template inline Packet preverse(const Packet& a) { return a; } + +/** \internal \returns \a a with real and imaginary part flipped (for complex type only) */ +template inline Packet pcplxflip(const Packet& a) +{ return Packet(imag(a),real(a)); } + /************************** * Special math functions ***************************/ -- cgit v1.2.3