Automatic Differentiation
 
Loading...
Searching...
No Matches
is_odd.hpp File Reference

Go to the source code of this file.

Classes

struct  stan::math::is_odd_fun
 Vectorization wrapper for is_odd. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T , require_integral_t< T > * = nullptr>
int stan::math::is_odd (T n)
 Return 1 if the integer is odd and 0 otherwise.
 
template<typename T , require_container_t< T > * = nullptr>
auto stan::math::is_odd (T &&x)
 Apply is_odd elementwise to a container.