next up previous contents
Next: Error handling Up: The Common Package Previous: Numerical routines   Contents

Comparison routines

      #include <gandalf/common/compare.h>
This is a set of functions to compute the maximum or minimum of up to six numbers, either as macros (e.g. gan_min3() for the minumum of three numbers) or as functions such as gan_max4_d() to return the maximum of four double precision floating point numbers.