How To Install libtnt-dev on Ubuntu 18.04

In this tutorial we learn how to install libtnt-dev on Ubuntu 18.04. libtnt-dev is interface for scientific computing in C++

Introduction

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

What is libtnt-dev

libtnt-dev is:

The Template Numerical Toolkit (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 libtnt-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 libtnt-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 libtnt-dev using apt-get by running the following command:

sudo apt-get -y install libtnt-dev

Install libtnt-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtnt-dev

Install libtnt-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 libtnt-dev using aptitude by running the following command:

sudo aptitude -y install libtnt-dev

How To Uninstall libtnt-dev on Ubuntu 18.04

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

sudo apt-get remove libtnt-dev

Uninstall libtnt-dev And Its Dependencies

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

sudo apt-get -y autoremove libtnt-dev

Remove libtnt-dev Configurations and Data

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

sudo apt-get -y purge libtnt-dev

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

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

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

References

Summary

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