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

◆ apply()

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

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

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

Definition at line 122 of file apply_vector_unary.hpp.