Automatic Differentiation
 
Loading...
Searching...
No Matches
for_each.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <functional>
#include <tuple>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

template<typename F , typename T , size_t... Is>
constexpr auto stan::math::internal::for_each (F &&f, T &&t, std::index_sequence< Is... >)
 Implementation of for_each.
 
template<typename F , typename T1 , typename T2 , size_t... Is>
constexpr auto stan::math::internal::for_each (F &&f, T1 &&t1, T2 &&t2, std::index_sequence< Is... >)
 Implementation of Binary for_each.
 
template<typename F , typename T1 , typename T2 , typename T3 , size_t... Is>
constexpr auto stan::math::internal::for_each (F &&f, T1 &&t1, T2 &&t2, T3 &&t3, std::index_sequence< Is... >)
 Implementation of ternary for_each.
 
template<typename F , typename T >
constexpr auto stan::math::for_each (F &&f, T &&t)
 Apply a function to each element of a tuple.
 
template<typename F , typename T1 , typename T2 >
constexpr auto stan::math::for_each (F &&f, T1 &&t1, T2 &&t2)
 Apply a function to each element of two tuples.
 
template<typename F , typename T1 , typename T2 , typename T3 >
constexpr auto stan::math::for_each (F &&f, T1 &&t1, T2 &&t2, T3 &&t3)
 Apply a function to each element of three tuples.