最快的C ++数学库 [英] Fastest math library for C++
问题描述
我正在使用C ++的gsl数学库。
但我需要更快的速度。任何人都可以提出更快的建议吗?
谢谢。
Anna
I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
Thanks.
Anna
推荐答案
Anna Smidt写道:
Anna Smidt wrote:
我正在使用C ++的gsl数学库。
但我需要更快的速度。任何人都建议更快一个吗?
谢谢。
Anna
I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
Thanks.
Anna
对不起安娜,但这是一个典型的VB说...
怕你永远不会成为c ++王牌:)
--PA
Sorry Anna, but this is a typical VB speak...
Afraid you''ll never become a c++ ace :)
--PA
" Anna Smidt" < a。***** @ nospamgmail.comha scritto nel messaggio
新闻:OM ************** @ TK2MSFTNGP03.phx.gbl ...
"Anna Smidt" <a.*****@nospamgmail.comha scritto nel messaggio
news:OM**************@TK2MSFTNGP03.phx.gbl...
>我正在使用C ++的gsl数学库。
但我需要更快的速度。任何人都可以提出更快的建议吗?
>I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
我不知道你需要什么数学函数从数学库(数组和
矩阵?特殊函数?等) 。
但是,您可以考虑使用Blitz ++ - 它使用模板元编程
技术来加速矩阵计算:
如果您需要最高速度,您也可以考虑手动优化和制作
代码,例如内联向量计算,避免像
struct vec {double x,y,z}和使用double v [3]之类的东西,避免在时间关键代码中使用虚拟
函数等等。
Giovanni
I don''t know what math features you need from a math library (array and
matrices? Special functions? etc.).
However, you may consider Blitz++ - it uses template metaprogramming
techniques to speed up matrix computations:
http://www.oonumerics.org/blitz/
If you need top speed, you may also consider optimizing and crafting the
code manually, e.g. inlining vector computations, avoiding things like
struct vec { double x, y, z } and using double v[3] instead, avoid virtual
functions in time-critical code, etc.
Giovanni
我将看一下Blitz ++,谢谢。
我认为内联技能将不得不等待我一段时间:-)
Anna
I will take a look into Blitz++, thanks.
I think inlining skills will have to wait for me some time still :-)
Anna
Anna Smidt < a。***** @ nospamgmail.comha scritto nel messaggio
新闻:OM ************** @ TK2MSFTNGP03.phx.gbl ...
"Anna Smidt" <a.*****@nospamgmail.comha scritto nel messaggio
news:OM**************@TK2MSFTNGP03.phx.gbl...
>我正在为C ++使用gsl数学库。
但我需要更快的速度。任何人都可以提出更快的建议吗?
>I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
我不知道你需要什么数学函数从数学库(数组和
矩阵?特殊函数?等) 。
但是,您可以考虑使用Blitz ++ - 它使用模板元编程
技术来加速矩阵计算:
如果您需要最高速度,您也可以考虑手动优化和制作
代码,例如内联向量计算,避免像
struct vec {double x,y,z}和使用double v [3]之类的东西,避免在时间关键代码中使用虚拟
函数等等。
Giovanni
I don''t know what math features you need from a math library (array and
matrices? Special functions? etc.).
However, you may consider Blitz++ - it uses template metaprogramming
techniques to speed up matrix computations:
http://www.oonumerics.org/blitz/
If you need top speed, you may also consider optimizing and crafting the
code manually, e.g. inlining vector computations, avoiding things like
struct vec { double x, y, z } and using double v[3] instead, avoid virtual
functions in time-critical code, etc.
Giovanni
这篇关于最快的C ++数学库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!