Stan Math Library  2.15.0
reverse mode automatic differentiation
operator_unary_not.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_OPERATOR_UNARY_NOT_HPP
2 #define STAN_MATH_REV_CORE_OPERATOR_UNARY_NOT_HPP
3 
5 
6 namespace stan {
7  namespace math {
8 
31  inline bool operator!(const var& a) {
32  return !a.val();
33  }
34 
35  }
36 }
37 #endif
bool operator!(const var &a)
Prefix logical negation for the value of variables (C++).
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:30
double val() const
Return the value of this variable.
Definition: var.hpp:230

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