diff options
author | 2009-03-09 18:40:09 +0000 | |
---|---|---|
committer | 2009-03-09 18:40:09 +0000 | |
commit | 3f80c68be52543d1463eec4461c3b79f49f33ed9 (patch) | |
tree | e79a9bd83fc0d95cf4428598cd05c4052ad94302 /Eigen/src/Core/GenericPacketMath.h | |
parent | bd8107c90c795322eb863d2f0bf2a3d49e3bc019 (diff) |
add the vectorization of abs
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rw-r--r-- | Eigen/src/Core/GenericPacketMath.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 10d39b68b..6be33f6e5 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -64,6 +64,10 @@ template<typename Packet> inline Packet ei_pmax(const Packet& a, const Packet& b) { return std::max(a, b); } +/** \internal \returns the absolute value of \a a */ +template<typename Packet> inline Packet +ei_pabs(const Packet& a) { return ei_abs(a); } + /** \internal \returns a packet version of \a *from, from must be 16 bytes aligned */ template<typename Scalar> inline typename ei_packet_traits<Scalar>::type ei_pload(const Scalar* from) { return *from; } |