Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
operator_greater_than.hpp
Go to the documentation of this file.
1 #ifndef __STAN__AGRAD__REV__OPERATOR_GREATER_THAN_HPP__
2 #define __STAN__AGRAD__REV__OPERATOR_GREATER_THAN_HPP__
3 
4 #include <stan/agrad/rev/var.hpp>
5 
6 namespace stan {
7  namespace agrad {
8 
16  inline bool operator>(const var& a, const var& b) {
17  return a.val() > b.val();
18  }
19 
28  inline bool operator>(const var& a, const double b) {
29  return a.val() > b;
30  }
31 
40  inline bool operator>(const double a, const var& b) {
41  return a > b.val();
42  }
43 
44  }
45 }
46 #endif

     [ Stan Home Page ] © 2011–2013, Stan Development Team.