Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::apply_vector_unary< T, require_std_vector_vt< is_container_or_var_matrix, T > > Struct Template Reference

Detailed Description

template<typename T>
struct stan::math::apply_vector_unary< T, require_std_vector_vt< is_container_or_var_matrix, T > >

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.
 

The documentation for this struct was generated from the following file: