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

◆ is_even() [1/2]

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

Return 1 if the integer is even and 0 otherwise.

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

Definition at line 18 of file is_even.hpp.