Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)
- From: Rohit Garg <rpg.314@xxxxxxxxx>
- Date: Thu, 20 Aug 2009 23:58:04 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=6+dIRb/HMpqhQXVvbSkX5g8NoXfsk2qYKKfWoxFVQNc=; b=T+cKC+rNf07KJsT8w8UlVeWM6V98lejMbvipmrsk31nleySfQ8DK0Uae+CAiHfYcJL hu9AQ/W822/hVd/f2wDgQS9K487/jt9NUwDC2RKbr2HqmfBLCr9cJq5/8XKl3LSN1HQL O91DAKYahfPv6nfOPpB6iyGQhjC3Jcitbo+p0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ajsXLMmMtvK2nWXOVznlZRILSzKfkh1dEnJbUhb+OOGtaa5OsTmKB9Q6B41tsBugBO x9UGZN37cCZrnsgIkc/DGS+wPeN2OlVspScgSDjSYEOxgnoUX+UQO0yvyfH7m7KC3Ewl RCtw4ojRT9uUsdUs3ytL4jOb1Bg3K9JD/Y4Sg=
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