| 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
int_step.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_INT_STEP_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_INT_STEP_HPP
3
4 namespace stan {
5 namespace math {
24 template <typename T>
25 unsigned int int_step(const T y) {
26 return y > 0;
27 }
28 }
29 }
30
31 #endif
stan::math::int_step
unsigned int int_step(const T y)
The integer step, or Heaviside, function.
Definition: int_step.hpp:25

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