All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
int_step.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_INT_STEP_HPP
#define STAN_MATH_PRIM_SCAL_FUN_INT_STEP_HPP
namespace stan {
namespace math {
template <typename T>
unsigned int int_step(const T y) {
return y > 0;
}
}
}
#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.