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*: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>*Date*: Fri, 21 Aug 2009 08:34:04 -0400*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; bh=P9H3NU22ex9B5GCQ6L6APRvnR+J17vlB+ykH6Y9fPWM=; b=E2R4A5L/lLdpMGFai3/dUU2zZeXAM5iuunEnBDNxKybSmdvbgs+xtzaY4BC+Z9FWlw NB41YDld5F12XKqsjrXxV0d0j+W9oq2ZLADxbpcratgAM8jvLSNom8lWiG045wt5KEgm GPLeoMi7tqb9UG6414Pc9Ftk5RdwUxN3VuiLg=*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; b=IHZ9SfDZ6vGzKpusJ37G1wWQe7QkQqT3GqfwvM3moTRRfAi7rx00Go9o6KXFALyA9G k9iIxrry2+XvDs4hnvvgnr830N06AAQU2cBMGyNuArewQ9fyh6Mt8h1kcVcxbNGNSj/r /9FydH3Z2H4d5CbDU0DH+84WYBWazDiz9Tkvo=

2009/8/21 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>: > one more information, if you want the coeff wise product of two int16 > returns a int32, you can simply add the specialization: > > template<> struct ei_scalar_product_traits<int16,int16> { typedef > int32 ReturnType; }; > > Also for the vectorization I think there is no other choice than using > structs instead of typdefs for the PacketXX SSE types because we need > to distinguish, e.g.: > > ei_padd(Packet4i,Packet4i) > > and > > ei_padd(Packet8s,Packet8s) > > so here Packet4i and Packet8s *must* be different types. Depends: in the other solution, this is remedied by making ei_padd template in the scalar type, so the first is the specialization for int and the second is the specialization for short. But yes that becomes a little cumbersome, that's what i meant when i said that if that solution is too cumbersome then prefer the other. Benoit

**Follow-Ups**:**Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)***From:*Gael Guennebaud

**References**:**[eigen] State of eigen support for small integers(16 bit, signed/unsigned)***From:*Rohit Garg

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

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

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

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

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

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

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] ILU decomposition** - Next by Date:
**Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)** - Previous by thread:
**Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)** - Next by thread:
**Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)**

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