Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
logical_negation.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__FUNCTIONS__LOGICAL_NEGATION_HPP
2 #define STAN__MATH__FUNCTIONS__LOGICAL_NEGATION_HPP
3 
4 namespace stan {
5  namespace math {
6 
15  template <typename T>
16  inline int
17  logical_negation(const T x) {
18  return (x == 0);
19  }
20 
21  }
22 }
23 
24 #endif
int logical_negation(const T x)
The logical negation function which returns 1 if the input is equal to zero and 0 otherwise...

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