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

◆ holder_handle_element() [3/3]

template<typename T , require_t< std::is_rvalue_reference< T && > > * = nullptr, std::enable_if_t< static_cast< bool >(Eigen::internal::traits< std::decay_t< T > >::Flags &Eigen::NestByRefBit)> * = nullptr>
auto stan::math::internal::holder_handle_element ( T &&  a,
T *&  res 
)

Handles single element (moving rvalue non-expressions to heap) for construction of holder or holder_cl from a functor.

Rvalue non-expression is moved to heap and the pointer to heap memory is assigned to res and returned in a tuple.

Template Parameters
Ttype of the element
Parameters
aelement to handle
resresulting pointer to element
Returns
tuple of pointers allocated on heap (containing single pointer).

Definition at line 287 of file holder.hpp.