What is a good open source C/C++ math library that

2020-07-24 05:49发布

I am working on a project that needs vector math and complex numbers.

I am looking a for a good open source API that supports C/C++ and hopefully has decent performance.

I can write these functions myself but it will be ugly and slow.

4条回答
Animai°情兽
2楼-- · 2020-07-24 06:29

I regularly use Sony Vector Math library bundled with bullet physics. It's fast has many linear algebra algorithms.
For complex numbers you can simply use std::complex

查看更多
▲ chillily
3楼-- · 2020-07-24 06:34

You can use the C++ complex numbers library
Also, Boost provides linear Algebra package

查看更多
疯言疯语
4楼-- · 2020-07-24 06:36

I haven't used any of these packages personally, but head over to Object-Oriented Numerics for a great selection of available libraries

查看更多
贼婆χ
5楼-- · 2020-07-24 06:53

Eigen is pretty much standard in research and should offer the stuff you need as well.

查看更多
登录 后发表回答