Search code examples
c++matlabvisual-c++-2005

MATLAB functions in C++


Does anyone know a resource where we can obtain FREE C++ libraries for MATLAB functions? For example, linear algebra problems can be solved using LAPACK and BLAS.

Also, MATLAB in a .NET project is out of the question - I'm talking about direct C++ implementations of popular MATLAB functions (I don't know which functions I need in C++ yet but the functions used are not going to be esoteric).

Any suggestions about such resources?


Solution

  • I've never heard of a comprehensive port of matlab functionality to C++. That being said, almost everything matlab does exists within a C/C++ library somewhere, some off the top of my head:

    • LAPACK, BLAS, you already mentioned these, and there are a few good implementations, the most notable (free) one being ATLAS.
    • FFT is implemented in matlab via the fftw library
    • There are loads of fast open-source image libraries out there, ie. interpolation, filtering.
    • There are really good OOP matrix libraries out there, boost has a nice one.

    After that, well figure out what you need and there is a good chance someone has implemented it in C/C++.