| GNU Scientific Library Reference Manual - Revised Second Edition (v1.8) by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, M. Booth, F. Rossi Paperback (6"x9"), 636 pages, 60 figures ISBN 0954161734 RRP £24.99 ($39.99) |
4.7 Maximum and Minimum functions
- Macro: GSL_MAX (a, b)
- This macro returns the maximum of a and b. It is defined as
((a) > (b) ? (a):(b)).
- Macro: GSL_MIN (a, b)
- This macro returns the minimum of a and b. It is defined as
((a) < (b) ? (a):(b)).
- Function: extern inline double GSL_MAX_DBL (double a, double b)
- This function returns the maximum of the double precision numbers
a and b using an inline function. The use of a function
allows for type checking of the arguments as an extra safety feature. On
platforms where inline functions are not available the macro
GSL_MAXwill be automatically substituted.
- Function: extern inline double GSL_MIN_DBL (double a, double b)
- This function returns the minimum of the double precision numbers
a and b using an inline function. The use of a function
allows for type checking of the arguments as an extra safety feature. On
platforms where inline functions are not available the macro
GSL_MINwill be automatically substituted.
- Function: extern inline int GSL_MAX_INT (int a, int b)
- Function: extern inline int GSL_MIN_INT (int a, int b)
- These functions return the maximum or minimum of the integers a
and b using an inline function. On platforms where inline
functions are not available the macros
GSL_MAXorGSL_MINwill be automatically substituted.
- Function: extern inline long double GSL_MAX_LDBL (long double a, long double b)
- Function: extern inline long double GSL_MIN_LDBL (long double a, long double b)
- These functions return the maximum or minimum of the long doubles a
and b using an inline function. On platforms where inline
functions are not available the macros
GSL_MAXorGSL_MINwill be automatically substituted.
| ISBN 0954161734 | GNU Scientific Library Reference Manual - Revised Second Edition (v1.8) | See the print edition |