From 1947da39ab18813ac5611f81c034eaca3ddc98a5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 2 May 2011 13:26:44 +0200 Subject: [PATCH] fix bug #258: asin/acos copy paste mistake --- Eigen/src/Core/Functors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Functors.h b/Eigen/src/Core/Functors.h index b1842b146..4040e15bd 100644 --- a/Eigen/src/Core/Functors.h +++ b/Eigen/src/Core/Functors.h @@ -750,9 +750,9 @@ struct functor_traits > */ template struct scalar_asin_op { EIGEN_EMPTY_STRUCT_CTOR(scalar_asin_op) - inline const Scalar operator() (const Scalar& a) const { return acos(a); } + inline const Scalar operator() (const Scalar& a) const { return asin(a); } typedef typename packet_traits::type Packet; - inline Packet packetOp(const Packet& a) const { return internal::pacos(a); } + inline Packet packetOp(const Packet& a) const { return internal::pasin(a); } }; template struct functor_traits >