| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
step.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_STEP_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_STEP_HPP
3
4 namespace stan {
5 namespace math {
6
28 template <typename T>
29 inline int step(const T y) {
30 return y < 0.0 ? 0 : 1;
31 }
32
33 }
34 }
35
36 #endif
stan::math::step
int step(const T y)
The step, or Heaviside, function.
Definition: step.hpp:29

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