Thursday, December 6, 2012

Calling Lapack in c++

To use Lapack library, we need install it first. I like to use Ubuntu Synaptics to install, but the source can be obtained at http://www.netlib.org/lapack/.
 To install using Synaptics,
>> sudo apt-get install liblapack+[tab] #use tab to get the current version. We want dev and runtime

To access Lapack from c/c++, we need to install gsl. To install gsl,
>> sudo apt-get install libgsl0-dev libgsl0

Remember to include the header file in c/c++,
#include "gsl/gsl_math.h"
#include "gsl/gsl_eigen.h"

No comments:

Post a Comment