The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.num-analysis

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Which numerical library to use for porting from Matlab to C++?
Replies: 4   Last Post: Mar 9, 2012 6:40 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Andreas Paulsen

Posts: 10
Registered: 2/8/12
Which numerical library to use for porting from Matlab to C++?
Posted: Feb 8, 2012 1:58 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am currently prototyping some algorithms in Matlab that rely on
matrix, DSP, statistics and image analysis functionality.

Some examples of what I may need:

convolution in 2D and 3D
Short Time Fourier Transform
Hilbert transform
Chebyshev polynomials
low pass filter
random multivariate gaussian numbers

Later on I will need to implement these algorithms in C++.

I also have a license for Numerical Recipes in C++, which I like
because it is well documented and have a wide variety of algorithms. I
also found a class that helps with wrapping NR functions in
MEX:nr3matlab.h. So using this class I should be able to generate
wrappers that allow me to call NR functions from Matlab. This is very
important to me, so that I can check each step when porting from
Matlab to C++. However Numerical Recipes in C++ have some important

algorithms implemented in a simple, and not necessarily very
efficient manner
not threaded

I am therefore considering using another numerical library. The ideal
library should:

be as broad in scope and functionality as possible
be well documented
(have commercial support)
have already made Matlab wrappers
very robust
very efficient
(have a GPU implementation that can be turned on instead of the
CPU with a "switch")

Which numerical library (libraries) would you suggest?

Thanks in advance for any answers!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.