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

◆ apply_no_holder() [1/2]

template<typename T >
template<typename F , typename T2 = T, require_t< is_eigen_matrix_base< plain_type_t< T2 > > > * = nullptr>
static auto stan::math::apply_vector_unary< T, require_eigen_t< T > >::apply_no_holder ( T2 &  x,
F &&  f 
)
inlinestatic

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

This is a variant of apply that does not construct holder, so it is up to the caller to ensure the returned expression is evaluated before x is destructed.

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 Eigen input.
Returns
Eigen object with result of applying functor to input

Definition at line 81 of file apply_vector_unary.hpp.