How To Install armadillo on CentOS 7

In this tutorial we learn how to install armadillo on CentOS 7. armadillo is Fast C++ matrix library with syntax similar to MATLAB and Octave

Introduction

In this tutorial we learn how to install armadillo on CentOS 7.

What is armadillo

Armadillo is a C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. Various matrix decompositions are provided through optional integration with LAPACK and ATLAS libraries. A delayed evaluation approach is employed (during compile time) to combine several operations into one and reduce (or eliminate) the need for temporaries. This is accomplished through recursive templates and template meta-programming. This library is useful if C++ has been decided as the language of choice (due to speed and/or integration capabilities), rather than another language like Matlab or Octave.

We can use yum or dnf to install armadillo on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install armadillo.

Install armadillo on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install armadillo using yum by running the following command:

sudo yum -y install armadillo

Install armadillo on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install armadillo using dnf by running the following command:

sudo dnf -y install armadillo

How To Uninstall armadillo on CentOS 7

To uninstall only the armadillo package we can use the following command:

sudo dnf remove armadillo

References

Summary

In this tutorial we learn how to install armadillo on CentOS 7 using yum and dnf.