Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)

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


I am through modding Numtraits.h, MathFunctions .h to add shorts. In
the PacketMath.h there are these 3 functions whose purpose I did not
understand.

ei_palign_impl
ei_preduxp
ei_predux

Comments?

I'll upload the new code to

On Thu, Aug 20, 2009 at 11:30 PM, Rohit Garg<rpg.314@xxxxxxxxx> wrote:
>> Oh, actually, it looks like we don't have any support for bitwise
>> shift at all. So you would have to add that feature from scratch. See
>> the file Functors.h in Core or Array, you have to add a functor for
>> that. This will be used as a CwiseUnaryOp so you could take the
>> existing unary operations (like cwise().pow(x) since it too takes a
>> parameter) as a starting point.
>
> There is a Functors.h in both array and core. I looked at both. The
> array one provides a EIGEN_FUNCTOR_PLUGIN. But I dont know how to put
> it to use. Suggestions?
>
> --
> Rohit Garg
>
> http://rpg-314.blogspot.com/
>
> Senior Undergraduate
> Department of Physics
> Indian Institute of Technology
> Bombay
>



-- 
Rohit Garg

http://rpg-314.blogspot.com/

Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay



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