ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
maxmin.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include <fvar.hpp>
12 
17 double max(const double u, const double v)
18 {
19  return u > v ? u : v;
20 }
21 
26 double min(const double u, const double v)
27 {
28  return u < v ? u : v;
29 }
30 
35 unsigned long max(unsigned long u, unsigned long v)
36 {
37  return u > v ? u : v;
38 }
39 
44 unsigned long min(unsigned long u, unsigned long v)
45 {
46  return u < v ? u : v;
47 }
#define min(a, b)
Definition: cbivnorm.cpp:188
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
#define max(a, b)
Definition: cbivnorm.cpp:189