How do I access the NAG libraries on the linux boxes?

This is information on how to use the NAG libraries on linux servers. The NAG libraries contain routines to things such as solve linear equations and compute eigenvalues of matrices.
This example shows how to compile one of the example NAG codes.
cp  /opt/NAG/fll6a24d9l/examples/source/f07fvfe.f .
f95  f07fvfe.f  -lnag
cp   /opt/NAG/fll6a24d9l/examples/data/f07fvfe.d .
a.out  < f07fvfe.d
cp   /opt/NAG/fll6a24d9l/examples/results_rh7/f07fvfe.r .
The file f07fvfe.r contains the sample output from NAG.
The NAG library is in /usr/lib/libnag.a
You should add the -lnag flag when you link in the code. May also need -lblas. The libraries will probably only work with the NAG Fortran 95 compiler f95. The example code is in
/opt/NAG 
There is a program nagexample that can automatically get example code for NAG.

The manuals for the nag libraries are in

/opt/NAG/nagdoc_fl21
If you run a browser you can read the html documentation for the nag libraries.

There is some information about the NAG routines from Liverpool computing services.


FAQ home page
Last modified: Aug 2016 by Steve