From e21e29a08850e43402824c9cc6a29a59420e3701 Mon Sep 17 00:00:00 2001 From: Deanna Hood Date: Tue, 17 Mar 2015 14:04:33 +1000 Subject: [PATCH] Update cost of arg call to depend on if the scalar is complex or not --- 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 01fef88f2..c92692e53 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -139,7 +139,7 @@ template struct functor_traits > { enum { - Cost = 5 * NumTraits::MulCost + NumTraits::AddCost, + Cost = NumTraits::IsComplex ? 5 * NumTraits::MulCost : NumTraits::AddCost, PacketAccess = packet_traits::HasArg }; };