| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

operator_not_equal.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_FWD_CORE_OPERATOR_NOT_EQUAL_HPP
2 #define STAN_MATH_FWD_CORE_OPERATOR_NOT_EQUAL_HPP
3
4 #include <stan/math/fwd/core/fvar.hpp>
5
6 namespace stan {
7 namespace math {
8
9 template <typename T>
10 inline
11 bool
12 operator!=(const fvar<T>& x, const fvar<T>& y) {
13 return x.val_ != y.val_;
14 }
15
16 template <typename T>
17 inline
18 bool
19 operator!=(const fvar<T>& x, double y) {
20 return x.val_ != y;
21 }
22
23 template <typename T>
24 inline
25 bool
26 operator!=(double x, const fvar<T>& y) {
27 return x != y.val_;
28 }
29 }
30 }
31 #endif
stan
Definition: log_sum_exp.hpp:8
stan::math::operator!=
bool operator!=(const fvar< T > &x, const fvar< T > &y)
Definition: operator_not_equal.hpp:12
stan::math::fvar::val_
T val_
Definition: fvar.hpp:13
fvar.hpp
stan::math::fvar
Definition: fvar.hpp:12

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