add vectorization of sqrt for float

This commit is contained in:
Gael Guennebaud
2009-03-27 14:41:46 +00:00
parent 3499f6eccd
commit 49fc1e3e84
6 changed files with 29 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ struct ei_default_packet_traits
HasMax = 1,
HasDiv = 0,
HasSqrt = 0,
HasExp = 0,
HasLog = 0,
HasPow = 0,
@@ -192,6 +193,9 @@ template<typename Packet> inline Packet ei_pexp(Packet a) { return ei_exp(a); }
/** \internal \returns the log of \a a (coeff-wise) */
template<typename Packet> inline Packet ei_plog(Packet a) { return ei_log(a); }
/** \internal \returns the square-root of \a a (coeff-wise) */
template<typename Packet> inline Packet ei_psqrt(Packet a) { return ei_log(a); }
/***************************************************************************
* The following functions might not have to be overwritten for vectorized types
***************************************************************************/