Maths Library (Any good ones?)

Discussion in 'NEON / DSP' started by Rockthesmurf, Dec 7, 2013.

  1. Rockthesmurf

    Rockthesmurf Advanced Member

    Joined:
    Jul 18, 2003
    Messages:
    1,098
    Location:
    Manchester, UK
    Does anyone have any experience with a maths library that supports vectors, matrices and quaternions and has pretty decent optimizations for NEON and SSE? I typically roll me own as required, but I currently feel like I'd like an off the shelf solution which is fast, reliable and free. Eigen is often the most mentioned one, and the software license these days is a bit nicer, I am a little put off by the size of it (although not enough not to give it a try), I understand it supports NEON/SSE, although just how optimized it is, it isn't clear to me.

    I'm doing some experiments with CPU skinning at the moment, so have a reasonable test case for an improved library!


    Anyone got any first hand knowledge/experience?
     
    Tags:
  2. _wb_

    _wb_ Microbe Staff Member

    Joined:
    Apr 5, 2012
    Messages:
    5,387
    Location:
    Brussels, Belgium
    Maybe there is something you can use in the dependencies of Sage. I remember compiling lots of math libraries for Sage.
     
  3. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,408
    Location:
    France, near Lyon
    I took a look at Eigen, but the NEON optim are close to 0, at least on vertex / matrix math use for GL. I havn't looked at the quaternion part of it.

    You can look at GLM also. I don't think NEON helps much too, but it's an interesting approach (but C++ only), and I found it easier to use then Eigen.
     
    Last edited by a moderator: Dec 7, 2013
  4. smcc

    smcc Still Fresh

    Joined:
    Sep 2, 2009
    Messages:
    9
    I've used WildMagic for this kind of thing on desktop.

    It builds as several different libraries so you can pick what you want and it's released under the boost licence.

    See http://www.geometrictools.com/Downloads/Downloads.html

    Not sure about how optimised it is but you can always benchmark it against your other options.
     
  5. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,913
    Location:
    Lithuania
  6. Pickle

    Pickle Mega GP Mania

    Joined:
    May 30, 2006
    Messages:
    5,450
    Location:
    Detroit, Michigan
  7. fantomid

    fantomid Very Active Member

    Joined:
    Oct 10, 2011
    Messages:
    287
    Location:
    Near Toulouse, France

Share This Page

Loading...