![]() |
Stan Math Library
2.10.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 103 of file apply_scalar_unary.hpp.
typedef double stan::math::apply_scalar_unary< F, int >::return_t |
The return type, double.
Definition at line 107 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 118 of file apply_scalar_unary.hpp.