Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
operator_unary_not.hpp
Go to the documentation of this file.
1 #ifndef STAN__AGRAD__REV__OPERATORS__OPERATOR_UNARY_NOT_HPP
2 #define STAN__AGRAD__REV__OPERATORS__OPERATOR_UNARY_NOT_HPP
3 
4 #include <stan/agrad/rev/var.hpp>
5 
6 namespace stan {
7  namespace agrad {
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++).
double val() const
Return the value of this variable.
Definition: var.hpp:209
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:27

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