Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
step.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__FUNCTIONS__STEP_HPP__
2 #define __STAN__MATH__FUNCTIONS__STEP_HPP__
3 
4 namespace stan {
5  namespace math {
6 
19  template <typename T>
20  inline int step(const T y) {
21  return y < 0.0 ? 0 : 1;
22  }
23 
24  }
25 }
26 
27 #endif

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