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

◆ to_arena() [5/6]

template<typename T >
std::vector< T, arena_allocator< T > > stan::math::to_arena ( const std::vector< T, arena_allocator< T > > &  a)
inline

Converts given argument into a type that either has any dynamic allocation on AD stack or schedules its destructor to be called when AD stack memory is recovered.

For std vectors that have data already on AD stack this is a shallow copy.

Template Parameters
Ttype of scalar
Parameters
aargument
Returns
argument

Definition at line 82 of file to_arena.hpp.