High Performance Math Library for Vector And Matri

2019-02-15 05:20发布

Where Can i find fast library for vector and Matrix Calculations? I need high performance.

Update:I need it for games calculations.

标签: c++ math 3d
5条回答
混吃等死
2楼-- · 2019-02-15 06:17

Eigen is supposed to be very good:

Eigen

查看更多
家丑人穷心不美
3楼-- · 2019-02-15 06:21

You might want to have a look at the math library of Geometric Tools. And if you're not creating your own engine, you might want to look at something like OGRE for the complete package.

查看更多
看我几分像从前
4楼-- · 2019-02-15 06:24

Edit: Sorry, I'm not high enough to add comments anywhere but just noticed you mentioned it is for games, unless you are writing your engine in software without any hardware acceleration, then the benefits you will get from the matrix manipulations (assuming that they are for TCL) are about nil in comparison to the rest of your code.


I can't link you to any particular library, but as you are specifying high performance a couple of suggestions that may help if nobody is forthcoming with a few libraries for you:

  1. Make use of SSE instructions.
  2. If you've got the money, the Intel maths library is meant to be excellent, as is their compiler.
  3. Vector and matrix calculations are the sort of things that GPUs excel at. It may be worth your while looking at something like CUDA from nVidia.
查看更多
爷、活的狠高调
5楼-- · 2019-02-15 06:24

Go for Blaze. Also check out the bench marking in parallel cores setup. Its certainly the fastest.enter image description here

查看更多
霸刀☆藐视天下
6楼-- · 2019-02-15 06:25

If you have an x86 system, you can use the Intel Math Kernel Library.

http://software.intel.com/en-us/articles/intel-mkl/

I was able to pull out 50 GFlops during linpack on my old quad box.

Another option may be cuda

查看更多
登录 后发表回答