Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::apply_scalar_unary< F, std::vector< T > > Struct Template Reference

Detailed Description

template<typename F, typename T>
struct stan::math::apply_scalar_unary< F, std::vector< T > >

Template specialization for vectorized functions applying to standard vector containers.

The lowest-level scalar type of the argument will determine the return type. Integers are promoted to double values.

Template Parameters
FClass defining a static apply function.
TType of element contained in standard vector.

Definition at line 160 of file apply_scalar_unary.hpp.

#include <apply_scalar_unary.hpp>

Public Types

using return_t = typename std::vector< plain_type_t< typename apply_scalar_unary< F, T >::return_t > >
 Return type, which is calculated recursively as a standard vector of the return type of the contained type T.
 

Static Public Member Functions

static auto apply (const std::vector< T > &x)
 Apply the function specified by F elementwise to the specified argument.
 

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