![]() |
Stan Math Library
2.15.0
reverse mode automatic differentiation
|
Template specialization for vectorized functions applying to integer arguments. More...
#include <apply_scalar_unary.hpp>
Public Types | |
typedef double | return_t |
The return type, double. More... | |
Static Public Member Functions | |
static return_t | apply (int x) |
Apply the function specified by F to the specified argument. More... | |
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 102 of file apply_scalar_unary.hpp.
typedef double stan::math::apply_scalar_unary< F, int >::return_t |
The return type, double.
Definition at line 106 of file apply_scalar_unary.hpp.
|
inlinestatic |
Apply the function specified by F to the specified argument.
This is defined through a direct application of F::fun()
, which must be defined for double arguments.
x | Argument scalar. |
Definition at line 117 of file apply_scalar_unary.hpp.