// g++ arma_eigenvalues.cpp -larmadillo #include #include #include int main(){ using arma::mat, arma::vec, arma::randu, arma::trans; mat A = randu(5,5); vec eigval; mat eigvec; A = A+trans(A); // a way to make a symmetric matrix std::cout<< "A= \n"<