How To Install libejml-java on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libejml-java
on Ubuntu 20.04.
What is libejml-java
libejml-java is:
Efficient Java Matrix Library (EJML) is a linear algebra library for manipulating dense matrices. Its design goals are;
- to be as computationally and memory efficient as possible for both small and large matrices, and
- to be accessible to both novices and experts. These goals are accomplished by dynamically selecting the best algorithms to use at runtime, clean API, and multiple interfaces.
EJML has three distinct ways to interact with it:
- procedural,
- SimpleMatrix, and
- Equations. Procedure provides all capabilities of EJML and almost complete control over memory creation, speed, and specific algorithms. SimpleMatrix provides a simplified subset of the core capabilities in an easy to use flow styled object-oriented API, inspired by Jama. Equations is a symbolic interface, similar in spirit to Matlab and other CAS, that provides a compact way of writing equations.
There are three methods to install libejml-java
on Ubuntu 20.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 libejml-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libejml-java
using apt-get
by running the following command:
sudo apt-get -y install libejml-java
Install libejml-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libejml-java
using apt
by running the following command:
sudo apt -y install libejml-java
Install libejml-java 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 libejml-java
using aptitude
by running the following command:
sudo aptitude -y install libejml-java
How To Uninstall libejml-java on Ubuntu 20.04
To uninstall only the libejml-java
package we can use the following command:
sudo apt-get remove libejml-java
Uninstall libejml-java And Its Dependencies
To uninstall libejml-java
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libejml-java
Remove libejml-java Configurations and Data
To remove libejml-java
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libejml-java
Remove libejml-java configuration, data, and all of its dependencies
We can use the following command to remove libejml-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libejml-java
References
Summary
In this tutorial we learn how to install libejml-java
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.