Automatic Differentiation
 
Loading...
Searching...
No Matches
int_step.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_INT_STEP_HPP
2#define STAN_MATH_PRIM_FUN_INT_STEP_HPP
3
5namespace stan {
6namespace math {
7
26template <typename T>
27inline int int_step(const T& y) {
28 return y > 0;
29}
30
31} // namespace math
32} // namespace stan
33#endif
int int_step(const T &y)
The integer step, or Heaviside, function.
Definition int_step.hpp:27
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...