Stan Math Library  2.12.0
reverse mode automatic differentiation
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 
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
bool operator!=(const fvar< T > &x, const fvar< T > &y)

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