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