mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
make special ei_p functions static to avoid linking issues (they are too
complex to be inlined)
This commit is contained in:
parent
49fc1e3e84
commit
e9f6167485
@ -178,23 +178,23 @@ template<typename Packet> inline Packet ei_preverse(const Packet& a)
|
||||
{ return a; }
|
||||
|
||||
/**************************
|
||||
* Trnascendental functions
|
||||
* Special math functions
|
||||
***************************/
|
||||
|
||||
/** \internal \returns the sin of \a a (coeff-wise) */
|
||||
template<typename Packet> inline Packet ei_psin(Packet a) { return ei_sin(a); }
|
||||
template<typename Packet> inline static Packet ei_psin(Packet a) { return ei_sin(a); }
|
||||
|
||||
/** \internal \returns the cos of \a a (coeff-wise) */
|
||||
template<typename Packet> inline Packet ei_pcos(Packet a) { return ei_cos(a); }
|
||||
template<typename Packet> inline static Packet ei_pcos(Packet a) { return ei_cos(a); }
|
||||
|
||||
/** \internal \returns the exp of \a a (coeff-wise) */
|
||||
template<typename Packet> inline Packet ei_pexp(Packet a) { return ei_exp(a); }
|
||||
template<typename Packet> inline static 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); }
|
||||
template<typename Packet> inline static 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); }
|
||||
template<typename Packet> inline static Packet ei_psqrt(Packet a) { return ei_log(a); }
|
||||
|
||||
/***************************************************************************
|
||||
* The following functions might not have to be overwritten for vectorized types
|
||||
|
Loading…
Reference in New Issue
Block a user