This forum has been archived. All content is frozen. Please use KDE Discuss instead.

eigen and long integers

Tags: None
(comma "," separated)
sweber
Registered Member
Posts
17
Karma
0

eigen and long integers

Thu Sep 03, 2009 9:55 am
Hi!

For various reasons I need Eigen to handle long long int values. However, support seems to be rather poor at the moment. The NumTraits are defined, but the math functions do not handle these types. As a result it is not possible to do a simple dot-product with Eigen when dealing with Eigen vectors of long long ints. Is there some particular reason why the appropiate implementation in MathFunctions has been left out for long long int? I tried eigen 2.0.5 and the dev-version with no success.

Thank a lot for any help here.

Sebastian
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: eigen and long integers

Thu Sep 03, 2009 2:52 pm
Argh, somehow my post got lost, rewriting...


no reason at all, just that apparently no-one needed it so far.

Is there any chance of SSE vectorization for 64 bit integers? If not, then indeed all what's needed is to add the missing bits to Eigen/src/Core/MathFunctions.h

If yes, perhaps that needs to go in a new module. perhaps join discussion with the current ML thread on short integers.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
sweber
Registered Member
Posts
17
Karma
0

Re: eigen and long integers

Thu Sep 03, 2009 4:16 pm
I dont get this software (forum stuff).

Anyway, a short implementation would be nice as well. However, I have no clue about SSE stuff. Shouldn't a simple copy int code to long int code at apropiate places do the job?

Sebastian
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: eigen and long integers

Thu Sep 03, 2009 4:45 pm
It won't get you vectorization. Getting vectorization to work requires adapting arch/SSE/PacketMath.h and it's not trivial(Again, I don't even know if it's possible for 64 bit integers).


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]