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

◆ make_holder_cl()

template<typename T , typename... Args, require_all_kernel_expressions_t< decltype(std::declval< T >()(std::declval< Args & >()...)), Args... > * = nullptr>
auto stan::math::make_holder_cl ( const T &  func,
Args &&...  args 
)

Constructs an expression from given arguments using given functor.

This is similar to calling the functor with given arguments. Except that any rvalue argument will be moved to heap first. The arguments moved to heap are deleted once the expression is destructed.

Template Parameters
Ttype of functor
Argstypes of arguments
Parameters
functhe functor
argsarguments for the functor

Definition at line 125 of file holder_cl.hpp.