How To Install libjama-dev on Ubuntu 18.04

In this tutorial we learn how to install libjama-dev on Ubuntu 18.04. libjama-dev is C++ Linear Algebra Package

Introduction

In this tutorial we learn how to install libjama-dev on Ubuntu 18.04.

What is libjama-dev

libjama-dev is:

JAMA/C++ was adapted for The Template Numerical Toolkit (TNT) from JAMA, a Java Matrix Library, developed jointly by the Mathworks and NIST. See http://math.nist.gov/javanumerics/jama for more information.

TNT is a collection of interfaces and reference implementations of numerical objects useful for scientific computing in C++. The toolkit defines interfaces for basic data structures, such as multidimensional arrays and sparse matrices, commonly used in numerical applications. The goal of this package is to provide reusable software components that address many of the portability and maintenance problems with C++ codes.

TNT provides a distinction between interfaces and implementations of TNT components. For example, there is a TNT interface for two-dimensional arrays which describes how individual elements are accessed and how certain information, such as the array dimensions, can be used in algorithms; however, there can be several implementations of such an interface: one that uses expression templates, or one that uses BLAS kernels, or another that is instrumented to provide debugging information. By specifying only the interface, applications codes may utilize such algorithms, while giving library developers the greatest flexibility in employing optimization or portability strategies.

Homepage: http://math.nist.gov/tnt/

There are three methods to install libjama-dev on Ubuntu 18.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 libjama-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 libjama-dev using apt-get by running the following command:

sudo apt-get -y install libjama-dev

Install libjama-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjama-dev

Install libjama-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libjama-dev

How To Uninstall libjama-dev on Ubuntu 18.04

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

sudo apt-get remove libjama-dev

Uninstall libjama-dev And Its Dependencies

To uninstall libjama-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjama-dev

Remove libjama-dev Configurations and Data

To remove libjama-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjama-dev

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

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

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

References

Summary

In this tutorial we learn how to install libjama-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.