ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
compare.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 int operator==(double v0, const prevariable& v1)
18 {
19  return (v0==value(v1));
20 }
21 
26 int operator<=(double v0, const prevariable& v1)
27 {
28  return (v0<=value(v1));
29 }
30 
35 int operator>=(double v0, const prevariable& v1)
36  {
37  return (v0>=value(v1));
38  }
39 
44 int operator>(double v0, const prevariable& v1)
45  {
46  return (v0>value(v1));
47  }
48 
53 int operator<(double v0, const prevariable& v1)
54  {
55  return (v0<value(v1));
56  }
57 
62 int operator!=(double v0, const prevariable& v1)
63  {
64  return (v0!=value(v1));
65  }
Base class for dvariable.
Definition: fvar.hpp:1315
int operator!=(double v0, const prevariable &v1)
Description not yet available.
Definition: compare.cpp:62
int operator<(double v0, const prevariable &v1)
Description not yet available.
Definition: compare.cpp:53
int operator==(double v0, const prevariable &v1)
Description not yet available.
Definition: compare.cpp:17
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int operator>(double v0, const prevariable &v1)
Description not yet available.
Definition: compare.cpp:44
int operator<=(double v0, const prevariable &v1)
Description not yet available.
Definition: compare.cpp:26
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
int operator>=(double v0, const prevariable &v1)
Description not yet available.
Definition: compare.cpp:35