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

◆ as_bool() [2/2]

int stan::math::as_bool ( const var v)
inline

Return 1 if the argument is unequal to zero and 0 otherwise.

Parameters
vValue.
Returns
1 if argument is equal to zero (or NaN) and 0 otherwise.

Definition at line 16 of file as_bool.hpp.