From 7e68b670c7bafe59e5af7275b706a58eade653e6 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sat, 29 Oct 2022 01:25:28 +0300 Subject: [PATCH] Make sure .log() consistent between scalar and vectorised --- Eigen/src/Core/functors/UnaryFunctors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index 348536968..a94aa71d3 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -320,7 +320,7 @@ struct functor_traits > { * \sa class CwiseUnaryOp, ArrayBase::log() */ template struct scalar_log_op { - EIGEN_DEVICE_FUNC inline const Scalar operator() (const Scalar& a) const { return numext::log(a); } + EIGEN_DEVICE_FUNC inline const Scalar operator() (const Scalar& a) const { return internal::plog(a); } template EIGEN_DEVICE_FUNC inline Packet packetOp(const Packet& a) const { return internal::plog(a); } }; -- GitLab