Armadillo installation

1.dependencies

sudo apt-get install libopenblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install libarpack2-dev
sudo apt-get install libsuperlu-dev

2.download Armadillo

https://gitlab.com/conradsnicta/armadillo-code

3.combile and install

cmake .

make

sudo make install

然后就编译一下他的example

g++ example1.cpp -o example1 -O2 -larmadillo

转载于:https://www.cnblogs.com/gary-guo/p/9263101.html

你可能感兴趣的:(Armadillo installation)