Stan Math Library
5.0.0
Automatic Differentiation
|
|
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 types that already have this property (including scalars and var_value
s) this is a no-op.
Passing in a lvalue reference to objects not using AD stack, such as a matrix_cl
is inefficient as they need to be copied in this case.
T | type of scalar |
a | argument |
Definition at line 49 of file to_arena.hpp.