Stan Math Library
4.8.1
Automatic Differentiation
|
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.
F | Class defining a static apply function. |
T | Type 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. | |