How To Install libnewmat10-dev on Debian 10

Learn how to install libnewmat10-dev on Debian 10 with this tutorial. libnewmat10-dev is matrix manipulations library (C++ headers files)

Introduction

In this tutorial we learn how to install libnewmat10-dev on Debian 10.

What is libnewmat10-dev

libnewmat10-dev is:

Newmat library is intended for scientists and engineers who need to manipulate a variety of types of matrices using standard matrix operations. Emphasis is on the kind of operations needed in statistical calculations such as least squares, linear equation solve and eigenvalues.

Newmat supports matrix types: Matrix (rectangular matrix); UpperTriangularMatrix; LowerTriangularMatrix; DiagonalMatrix; SymmetricMatrix; BandMatrix; UpperBandMatrix; LowerBandMatrix; SymmetricBandMatrix; IdentityMatrix; RowVector; ColumnVector.

Only one element type (float or double) is supported (default is double).

The library includes the operations *, +, -, *=, +=, -=, Kronecker product, Schur product, concatenation, inverse, transpose, conversion between types, submatrix, determinant, Cholesky decomposition, QR triangularisation, singular value decomposition, eigenvalues of a symmetric matrix, sorting, fast Fourier and trig. transforms and printing.

libnewmat-dev contains static libraries, headers, and some documentation.

There are three methods to install libnewmat10-dev on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnewmat10-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libnewmat10-dev using apt-get by running the following command:

sudo apt-get -y install libnewmat10-dev

Install libnewmat10-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnewmat10-dev using apt by running the following command:

sudo apt -y install libnewmat10-dev

Install libnewmat10-dev 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libnewmat10-dev using aptitude by running the following command:

sudo aptitude -y install libnewmat10-dev

How To Uninstall libnewmat10-dev on Debian 10

To uninstall only the libnewmat10-dev package we can use the following command:

sudo apt-get remove libnewmat10-dev

Uninstall libnewmat10-dev And Its Dependencies

To uninstall libnewmat10-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libnewmat10-dev

Remove libnewmat10-dev Configurations and Data

To remove libnewmat10-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libnewmat10-dev

Remove libnewmat10-dev configuration, data, and all of its dependencies

We can use the following command to remove libnewmat10-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnewmat10-dev

Dependencies

libnewmat10-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libnewmat10-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.