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

◆ possibly_sum() [1/2]

template<typename CondSum , typename T , require_t< CondSum > * = nullptr>
auto stan::math::possibly_sum ( T &&  x)
inline

Conditionally sum the input at compile time.

Template Parameters
CondSumA struct with a static boolean member value which if true will allow the input value to be summed
TA scalar, Eigen type, or standard vector with inner scalar type.
Parameters
xThe value to be summed.

Definition at line 18 of file possibly_sum.hpp.