This page is obsolete now, left here for archive and information only.
The Ada Lapack code is now housed at http://sourceforge.net/projects/ada-lapack/
I downloaded the original BLAS Ada binding written by Duncan Sands from http://topo.math.u-psud.fr/~sands/Programs/BLAS/index.html and the LAPACK Ada binding written by Wasu Chaopanon from ftp://ftp.cs.kuleuven.be/pub/Ada-Belgium/mirrors/gnu-ada/OLD/contrib/lapack-ada/
and made some minor improvments to the bindings.
This page describes the minor changes made and instructions how to use these bindings from Ada in order call LAPACK and BLAS Fortran functions.
A new tar ﬁle for LAPACK and for BLAS with all the changes can be downloaded from the link below.
The changes made to LAPACK binding involve streamlining the source tree structure, writing new Makeﬁles, simplify the binding to use one package called lapack and also adding the documentation shown below.
Changes for the BLAS binding were minimal. It involved changes to the source tree structure and writing Makeﬁles and adding the documentation shown below.
The Ada binding to LAPACK and BLAS is an Ada package which allows one to interface to the native lapack and blas libraries.
The native lapack and blas libraries need to be ﬁrst installed on the system (on Linux, these libraries will normally be found in /usr/lib/liblapack.so and /usr/lib/libblas.so )
To use LAPACK from Ada, one needs to install both the native LAPACK and BLAS libraries since LAPACK depends on BLAS.
The Ada binding is a thin binding, meaning there is 1-1 mapping between the call to the Ada routine and the corresponding Fortran routine using the same function name in the Fortran libraries.
The following diagram illustrates the use of the LAPACK binding with the needed gnatmake command to compile and link the client Ada program.
And a similar diagram for the BLAS binding interface
The source tree structure for LAPACK is described in this diagram
The full content of the LAPACK tree is listed here lapack_tree_listing.txt
The source tree structure for the BLAS binding is described in this diagram
These instructions explain how to use the Ada LAPACK and BLAS binding in the updated snapshot tar ﬁle.