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

◆ index_apply()

template<std::size_t N, class F >
constexpr auto stan::math::index_apply ( F &&  f)
inlineconstexpr

Calls given callable with an index sequence.

Combination of this and a lambda can be used to avoid separating implementation that needs an index sequence from functions that operate on tuples of parameter packs.

Template Parameters
Nsize of index sequence to use
Fcallable type
Parameters
fcallable
Returns
what the given callable returns

Definition at line 26 of file index_apply.hpp.