Stan Math Library
4.8.1
Automatic Differentiation
|
Template specialization for vectorized functions applying to integer arguments.
Although the argument is integer, the return type is specified as double. This allows promotion of integers to doubles in vectorized functions, or in containers.
F | Type of function defining static apply function. |
Definition at line 133 of file apply_scalar_unary.hpp.
#include <apply_scalar_unary.hpp>
Public Types | |
using | return_t = std::decay_t< decltype(F::fun(std::declval< double >()))> |
The return type, double. | |
Static Public Member Functions | |
static auto | apply (T x) |
Apply the function specified by F to the specified argument. | |