Go back to the installation instructions.

Numerical Recipes

The Numerical Recipes books contain code for basic one- and multi-dimensional FFTs. This code is widely used and provides a useful baseline performance reference. It is not in the public-domain and may not be distributed freely, so we could not include it in this package. Many users will have their own copy, however, and so we have made it simple to include.

To add the Numerical Recipes routines, you must make a few small modifications to the code and to the Makefile, as described below.

Using Numerical Recipes in C

The following instructions describe how to benchmark the routines four1 and fourn from Numerical Recipes in C. Once this is done, you have to modify the Makefile so that the NR code will be used. (Or do the equivalent on systems without make.) This requires two changes:

Using Numerical Recipes in Fortran

The following instructions describe how to benchmark the routines four1 and fourn from Numerical Recipes in Fortran. (Note that it is perfectly fine to include both the C and Fortran Numerical Recipes code in the benchmark.)

Of course, you must also have a Fortran compiler, and set up the benchmark to use it (see the installation instructions).

Once this is done, you have to modify the Makefile so that the NR code will be used. (Or do the equivalent on systems without make.) This requires two changes:
Go back to the installation instructions.