From e9f61674851ea3e8114fdd4111f85d66bbcfb8d5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 27 Mar 2009 14:55:46 +0000 Subject: [PATCH] make special ei_p functions static to avoid linking issues (they are too complex to be inlined) --- Eigen/src/Core/GenericPacketMath.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 0b5144632..b4bb1c5fe 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -178,23 +178,23 @@ template inline Packet ei_preverse(const Packet& a) { return a; } /************************** -* Trnascendental functions +* Special math functions ***************************/ /** \internal \returns the sin of \a a (coeff-wise) */ -template inline Packet ei_psin(Packet a) { return ei_sin(a); } +template inline static Packet ei_psin(Packet a) { return ei_sin(a); } /** \internal \returns the cos of \a a (coeff-wise) */ -template inline Packet ei_pcos(Packet a) { return ei_cos(a); } +template inline static Packet ei_pcos(Packet a) { return ei_cos(a); } /** \internal \returns the exp of \a a (coeff-wise) */ -template inline Packet ei_pexp(Packet a) { return ei_exp(a); } +template inline static Packet ei_pexp(Packet a) { return ei_exp(a); } /** \internal \returns the log of \a a (coeff-wise) */ -template inline Packet ei_plog(Packet a) { return ei_log(a); } +template inline static Packet ei_plog(Packet a) { return ei_log(a); } /** \internal \returns the square-root of \a a (coeff-wise) */ -template inline Packet ei_psqrt(Packet a) { return ei_log(a); } +template inline static Packet ei_psqrt(Packet a) { return ei_log(a); } /*************************************************************************** * The following functions might not have to be overwritten for vectorized types