Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
operator_unary_not.hpp
Go to the documentation of this file.
1 #ifndef __STAN__AGRAD__REV__OPERATOR_UNARY_NOT_HPP__
2 #define __STAN__AGRAD__REV__OPERATOR_UNARY_NOT_HPP__
3 
4 #include <stan/agrad/rev/var.hpp>
5 
6 namespace stan {
7  namespace agrad {
8 
22  inline bool operator!(const var& a) {
23  return !a.val();
24  }
25 
26  }
27 }
28 #endif

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