Simple CLAPACK Examples and Makefile

Andrew J. Pounds, Ph.D
Departments of Chemistry and Computer Science
Mercer University

The CLAPACK distribution is devoid of simple example programs to illustrate the use of the C version of the library. The following examples were developed to demonstrate the calls to the double precision and double precision complex linear solvers. From these is should be obvious how other routines are called.


dgesv_example.c
zgesv_example.c

In addition, the library files from the CLAPACK distribution have to be linked in a specific order. A simple makefile for building the programs above can be found here . It assumes that you have downloaded the CLAPACK distribution from Netlib. You will most likely have to change the value of ROOTPATH.