ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
linad99
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
}
min
#define min(a, b)
Definition:
cbivnorm.cpp:188
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
max
#define max(a, b)
Definition:
cbivnorm.cpp:189
Generated on Wed Sep 7 2022 00:01:29 for ADMB Documentation by
1.8.5