![]() |
Stan Math Library
5.2.0
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 178 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, value_type_t< std::decay_t< 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 | |
| template<typename TT > | |
| static auto | apply (TT &&x) |
| Apply the function specified by F elementwise to the specified argument. | |