fix a couple of issues with pcplxflip

This commit is contained in:
Gael Guennebaud
2011-02-23 17:51:40 +03:00
parent 939f0327b6
commit 6e01780541
4 changed files with 10 additions and 5 deletions

View File

@@ -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
***************************/