A
Anna Smidt
I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
Thanks.
Anna
But I need more speed. Can anybody suggest a faster one?
Thanks.
Anna
Anna said:I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
Thanks.
Anna
Anna Smidt said:I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
Anna Smidt said:I am using the gsl math library for C++.
But I need more speed. Can anybody suggest a faster one?
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
Afraid you'll never become a c++ ace
--PA
Anna Smidt said:You estimate me wrong. I even tweaked VB6 with assembler code when I
needed it.
The GSL lib I'm using is already inline, but I'm feeling (it's a feeling
only, I cannot describe why I feel it... oh wait... I'm a woman, that
tells it all) that it's still slow/ too slow.
Giovanni Dicanio said:I think that in programming you don't use "feelings" to analyze
performance (?!).
You should *measure* performance, you could use benchmarks, etc.
Armin Zingler said:After measuring performance, you know it takes 12.34 seconds. Is this good
or bad? Without a feeling that tells you if it's slow or fast, the number
doesn't have a meaning. That's why I think that the feeling can also be
important.
![]()
Giovanni Dicanio said:This kind of feeling is OK, and it makes sense after you measured
performance.
But I can't have a feeling that a library is fast or slow without
concrete data.
I meant just that![]()
Sheng Jiang said:good or bad are relative terms. What you are comparing to?
Find alternatives to your approach and benchmark them.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.