1#ifndef STAN_MATH_PRIM_META_INDEX_APPLY_HPP
2#define STAN_MATH_PRIM_META_INDEX_APPLY_HPP
10template <
class F, std::size_t... Is>
12 return std::forward<F>(f)(std::integral_constant<std::size_t, Is>{}...);
25template <std::
size_t N,
class F>
28 std::make_index_sequence<N>{});
constexpr auto index_apply_impl(F &&f, std::index_sequence< Is... >)
constexpr auto index_apply(F &&f)
Calls given callable with an index sequence.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...