![]() |
Stan Math Library
2.14.0
reverse mode automatic differentiation
|
Template specialization for vectorized functions applying to standard vector containers. More...
#include <apply_scalar_unary.hpp>
Public Types | |
typedef std::vector< typename apply_scalar_unary< F, T >::return_t > | return_t |
Return type, which is calculated recursively as a standard vector of the return type of the contained type T. More... | |
Static Public Member Functions | |
static return_t | apply (const std::vector< T > &x) |
Apply the function specified by F elementwise to the specified argument. More... | |
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 132 of file apply_scalar_unary.hpp.
typedef std::vector<typename apply_scalar_unary<F, T>::return_t> stan::math::apply_scalar_unary< F, std::vector< T > >::return_t |
Return type, which is calculated recursively as a standard vector of the return type of the contained type T.
Definition at line 138 of file apply_scalar_unary.hpp.
|
inlinestatic |
Apply the function specified by F elementwise to the specified argument.
This is defined recursively through this class applied to elements of type T.
x | Argument container. |
Definition at line 149 of file apply_scalar_unary.hpp.