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

◆ to_arena_if() [1/2]

template<bool Condition, typename T , std::enable_if_t<!Condition > * = nullptr>
T stan::math::to_arena_if ( T &&  a)
inline

If the condition is true, converts given argument into a type that has any dynamic allocation on AD stack.

Otherwise returns the argument

Template Parameters
Ttype of argument
Parameters
aargument
Returns
argument copied/evaluated on AD stack

Definition at line 145 of file to_arena.hpp.