Stan Math Library  2.14.0
reverse mode automatic differentiation
operator_less_than.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_FWD_CORE_OPERATOR_LESS_THAN_HPP
2 #define STAN_MATH_FWD_CORE_OPERATOR_LESS_THAN_HPP
3 
5 
6 namespace stan {
7  namespace math {
8 
9  template <typename T>
10  inline bool operator<(const fvar<T>& x,
11  double y) {
12  return x.val_ < y;
13  }
14 
15  template <typename T>
16  inline bool operator<(double x,
17  const fvar<T>& y) {
18  return x < y.val_;
19  }
20 
21  template <typename T>
22  inline bool operator<(const fvar<T>& x,
23  const fvar<T>& y) {
24  return x.val_ < y.val_;
25  }
26  }
27 }
28 #endif
bool operator<(const fvar< T > &x, double y)

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