Statistics
| Revision:

root / trunk / src / linad99 / maxmin.cpp @ 1942

History | View | Annotate | Download (696 Bytes)

1
/*
2
 * $Id: maxmin.cpp 1942 2014-04-28 22:22:45Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include <fvar.hpp>
12

    
13
/**
14
 * Description not yet available.
15
 * \param
16
 */
17
double max(const double u, const double v)
18
{
19
  return u > v ? u : v;
20
}
21

    
22
/**
23
 * Description not yet available.
24
 * \param
25
 */
26
double min(const double u, const double v)
27
{
28
  return u < v ? u : v;
29
}
30

    
31
/**
32
 * Description not yet available.
33
 * \param
34
 */
35
unsigned long max(unsigned long u, unsigned long v)
36
{
37
  return u > v ? u : v;
38
}
39

    
40
/**
41
 * Description not yet available.
42
 * \param
43
 */
44
unsigned long min(unsigned long u, unsigned long v)
45
{
46
  return u < v ? u : v;
47
}