Stan Math Library
4.8.1
Automatic Differentiation
|
Specialization for use with nested containers (std::vectors).
For each of the member functions, an std::vector with the appropriate type (vector or scalar) is returned.
The returned scalar type is deduced to allow for cases where the input and return scalar types differ (e.g., functions implicitly promoting integers).
Definition at line 173 of file apply_vector_unary.hpp.
#include <apply_vector_unary.hpp>
Public Types | |
using | T_vt = value_type_t< T > |
Static Public Member Functions | |
template<typename F > | |
static auto | apply (const T &x, const F &f) |
Member function for applying a functor to each container in an std::vector and subsequently returning an std::vector of containers. | |
template<typename F > | |
static auto | apply_no_holder (const T &x, const F &f) |
Member function for applying a functor to each container in an std::vector and subsequently returning an std::vector of containers. | |
template<typename F > | |
static auto | reduce (const T &x, const F &f) |
Member function for applying a functor to each container in an std::vector and subsequently returning an std::vector of scalars. | |