[eigen] Bug in Array/Functors.h

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


The compilation failed in this file with 'ei_div' missing. I believe it is should be 'ei_pdiv' instead. Please find a patch attached.

Index: Eigen/src/Array/Functors.h

===================================================================

--- Eigen/src/Array/Functors.h (revision 850983)

+++ Eigen/src/Array/Functors.h (working copy)

@@ -152,7 +152,7 @@

inline Scalar operator() (const Scalar& a) const { return Scalar(1)/a; }

template<typename PacketScalar>

inline const PacketScalar packetOp(const PacketScalar& a) const

- { return ei_div(ei_pset1(Scalar(1)),a); }

+ { return ei_pdiv(ei_pset1(Scalar(1)),a); }

};

template<typename Scalar>

struct ei_functor_traits<ei_scalar_inverse_op<Scalar> >

--

Timothy Hunter

Student (Stanford University)

T. 404 421 3075



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/