Stan Math Library
5.0.0
Automatic Differentiation
|
auto stan::math::make_holder | ( | const F & | func, |
Args &&... | args | ||
) |
Constructs an expression from given arguments using given functor.
Calls given function with given arguments.
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.
F | type of the functor |
Args | types of the arguments |
func | the functor |
args | arguments for the functor |
holder
referencing expression constructed by given functorNo holder
is necessary if the function is not returning Eigen expression.
F | type of the functor |
Args | types of the arguments |
func | the functor |
args | arguments for the functor |
holder
referencing expression constructed by given functor Definition at line 352 of file holder.hpp.