Stan Math Library
5.0.0
Automatic Differentiation
|
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.
T | type of scalar |
a | argument |
Definition at line 25 of file to_arena.hpp.