Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ step() [3/3]

var stan::math::step ( const var a)
inline

Return the step, or heaviside, function applied to the specified variable (stan).

See step() for the double-based version.

The derivative of the step function is zero everywhere but at 0, so for convenience, it is taken to be everywhere zero,

\(\mbox{step}(x) = 0\).

Parameters
aVariable argument.
Returns
The constant variable with value 1.0 if the argument's value is greater than or equal to 0.0, and value 0.0 otherwise.

Definition at line 26 of file step.hpp.