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_stan_scalar, T > >::reduce ( const T &  x,
const F &  f 
)
inlinestatic

Member function for applying a functor to a vector and subsequently returning a scalar.

Template Parameters
TType of argument to which functor is applied.
FType of functor to apply.
Parameters
xEigen input to which operation is applied.
ffunctor to apply to std::vector input.
Returns
scalar result of applying functor to input vector.

Definition at line 157 of file apply_vector_unary.hpp.