diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index b4bb1c5fe..7e2e88f84 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -194,7 +194,7 @@ template inline static Packet ei_pexp(Packet a) { return ei_exp template inline static Packet ei_plog(Packet a) { return ei_log(a); } /** \internal \returns the square-root of \a a (coeff-wise) */ -template inline static Packet ei_psqrt(Packet a) { return ei_log(a); } +template inline static Packet ei_psqrt(Packet a) { return ei_sqrt(a); } /*************************************************************************** * The following functions might not have to be overwritten for vectorized types