Attention

WARNING: From 9am on 19th August until 5pm on 2nd September there will be no access to the Stanage HPC cluster.

We will send an email to notify you when Stanage is back online and available for job submission.

Attention

The ShARC HPC cluster was decommissioned on the 30th of November 2023 at 17:00. It is no longer possible for users to access that cluster.

armadillo

Armadillo is a high quality linear algebra library (matrix maths) for the C++ language, aiming towards a good balance between speed and ease of use.

Usage

To make this library available, run the following:

module load libs/armadillo/7.950.1/gcc-4.9.4

To compile this example program

#include <iostream>
#include <armadillo>

using namespace std;
using namespace arma;

int main()
{
mat A = randu<mat>(4,5);
mat B = randu<mat>(4,5);

cout << A*B.t() << endl;

return 0;
}

If you save the above program as example.cpp, once you load the module it can be compiled using

g++ example.cpp -o example -O2 -larmadillo

Installation notes

This section is primarily for administrators of the system.

Version 7.950.1

This was compiled with GCC 4.9.4 and the Intel MKL