Automatic Differentiation
 
Loading...
Searching...
No Matches
static_select.hpp File Reference
#include <type_traits>
#include <utility>

Go to the source code of this file.

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<bool Condition, typename T1 , typename T2 , std::enable_if_t< Condition > * = nullptr>
T1 stan::math::static_select (T1 &&a, T2 &&b)
 Returns one of the arguments that can be of different type, depending on the compile time condition.
 
template<bool Condition, typename T1 , typename T2 , std::enable_if_t<!Condition > * = nullptr>
T2 stan::math::static_select (T1 &&a, T2 &&b)