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

◆ is_odd() [1/2]

template<typename T , require_integral_t< T > * = nullptr>
int stan::math::is_odd ( T  n)
inline

Return 1 if the integer is odd and 0 otherwise.

Template Parameters
TInteger type
Parameters
nInteger to check
Returns
1 if n is odd, 0 otherwise

Definition at line 18 of file is_odd.hpp.