ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
compare.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <fvar.hpp>
00012 
00017 int operator==(double v0, const prevariable& v1)
00018 {
00019   return (v0==value(v1));
00020 }
00021 
00026 int operator<=(double v0, const prevariable& v1)
00027 {
00028   return (v0<=value(v1));
00029 }
00030 
00035 int operator>=(double v0, const prevariable& v1)
00036    {
00037      return (v0>=value(v1));
00038    }
00039 
00044 int operator>(double v0, const prevariable& v1)
00045    {
00046      return (v0>value(v1));
00047    }
00048 
00053 int operator<(double v0, const prevariable& v1)
00054    {
00055      return (v0<value(v1));
00056    }
00057 
00062 int operator!=(double v0, const prevariable& v1)
00063    {
00064      return (v0!=value(v1));
00065    }