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

◆ holder_cl()

template<typename T , typename... Ptrs, require_all_kernel_expressions_t< T, Ptrs... > * = nullptr>
auto stan::math::holder_cl ( T &&  a,
Ptrs *...  ptrs 
)

Constructs a no-op operation that also holds pointer to some other expressions, allocated on heap.

When the object is destructed those expressions will be deleted.

Template Parameters
Ttype of argument expression
Ptrstypes of pointers
Parameters
aargument expression
ptrspointers to objects the constructed object will own.
Returns
holder_cl_ operation

Definition at line 67 of file holder_cl.hpp.