| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
4 #include <stan/math/fwd/core/fvar.hpp>
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
stan
Definition: log_sum_exp.hpp:8
stan::math::fvar::val_
T val_
Definition: fvar.hpp:13
fvar.hpp
stan::math::operator<
bool operator<(const fvar< T > &x, double y)
Definition: operator_less_than.hpp:10
stan::math::fvar
Definition: fvar.hpp:12

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