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

◆ to_arena() [1/6]

template<typename T , require_matrix_cl_t< T > * = nullptr>
arena_t< T > stan::math::to_arena ( const T &  a)

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.

This overload is used for matrix_cl. It is converted to a subclass that schedules its destructor to be called when the memory is recovered.

Template Parameters
Ttype of scalar
Parameters
aargument
Returns
argument

Definition at line 25 of file to_arena.hpp.