Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ iter_tuple_nested()

template<typename F , typename... Types>
void stan::math::iter_tuple_nested ( F &&  f,
Types &&...  args 
)
inline

Iterate and nest into a tuple or std::vector to apply f to each matrix or scalar type.

Template Parameters
Fa functor with operator()(Arg&&)
Typestypes of arguments to f
Parameters
ffunctor to apply
argsarguments to apply f to. If args is a tuple or std::vector, this function will nest until it finds an Eigen type or scalar then apply f to that value.
Returns
void, all arguments are passed by reference and this function will only create side effects.

Definition at line 23 of file iter_tuple_nested.hpp.