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

◆ reduce()

template<typename T >
template<typename F >
static auto stan::math::apply_vector_unary< T, require_std_vector_vt< is_container_or_var_matrix, T > >::reduce ( const T &  x,
const F &  f 
)
inlinestatic

Member function for applying a functor to each container in an std::vector and subsequently returning an std::vector of scalars.

Template Parameters
TType of argument to which functor is applied.
FType of functor to apply.
Parameters
xstd::vector of containers to which operation is applied.
ffunctor to apply to vector input.
Returns
std::vector of scalars with result of applying functor to input.

Definition at line 226 of file apply_vector_unary.hpp.