fix bug #258: asin/acos copy paste mistake

This commit is contained in:
Gael Guennebaud 2011-05-02 13:26:44 +02:00
parent 10426b7647
commit 1947da39ab

View File

@ -750,9 +750,9 @@ struct functor_traits<scalar_acos_op<Scalar> >
*/ */
template<typename Scalar> struct scalar_asin_op { template<typename Scalar> struct scalar_asin_op {
EIGEN_EMPTY_STRUCT_CTOR(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<Scalar>::type Packet; typedef typename packet_traits<Scalar>::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<typename Scalar> template<typename Scalar>
struct functor_traits<scalar_asin_op<Scalar> > struct functor_traits<scalar_asin_op<Scalar> >