How To Install libmath-matrixreal-perl on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libmath-matrixreal-perl
on Ubuntu 22.04.
What is libmath-matrixreal-perl
libmath-matrixreal-perl is:
Math::MatrixReal implements the data type “matrix of reals” (and consequently also “vector of reals”) which can be used almost like any other basic Perl type thanks to operator overloading.
It features many important operations and methods: matrix norm, matrix transposition, matrix inverse, determinant of a matrix, order and numerical condition of a matrix, scalar product of vectors, vector product of vectors, vector length, projection of row and column vectors, a comfortable way for reading in a matrix from a file, the keyboard or your code, and many more.
It allows one to solve linear equation systems using an efficient algorithm known as “L-R-decomposition” and several approximative (iterative) methods.
It features an implementation of Kleene’s algorithm to compute the minimal costs for all paths in a graph with weighted edges (the “weights” being the costs associated with each edge).
Finally, it allows one to solve the eigensystem of a real symmetric matrix, using Householder transformation and QL decomposition.
There are three methods to install libmath-matrixreal-perl
on Ubuntu 22.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libmath-matrixreal-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libmath-matrixreal-perl
using apt-get
by running the following command:
sudo apt-get -y install libmath-matrixreal-perl
Install libmath-matrixreal-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmath-matrixreal-perl
using apt
by running the following command:
sudo apt -y install libmath-matrixreal-perl
Install libmath-matrixreal-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libmath-matrixreal-perl
using aptitude
by running the following command:
sudo aptitude -y install libmath-matrixreal-perl
How To Uninstall libmath-matrixreal-perl on Ubuntu 22.04
To uninstall only the libmath-matrixreal-perl
package we can use the following command:
sudo apt-get remove libmath-matrixreal-perl
Uninstall libmath-matrixreal-perl And Its Dependencies
To uninstall libmath-matrixreal-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libmath-matrixreal-perl
Remove libmath-matrixreal-perl Configurations and Data
To remove libmath-matrixreal-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libmath-matrixreal-perl
Remove libmath-matrixreal-perl configuration, data, and all of its dependencies
We can use the following command to remove libmath-matrixreal-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmath-matrixreal-perl
References
Summary
In this tutorial we learn how to install libmath-matrixreal-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.