![]() |
Stan Math Library
2.12.0
reverse mode automatic differentiation
|
General struct to hold static function for promoting underlying scalar types. More...
#include <promote_scalar.hpp>
Static Public Member Functions | |
static T | apply (S x) |
Return the value of the input argument promoted to the type specified by the template parameter. More... | |
General struct to hold static function for promoting underlying scalar types.
T | return type of nested static function. |
S | input type for nested static function, whose underlying scalar type must be assignable to T. |
Definition at line 19 of file promote_scalar.hpp.
|
inlinestatic |
Return the value of the input argument promoted to the type specified by the template parameter.
This is the base case for mismatching template parameter types in which the underlying scalar type of template parameter S
is assignable to type T
.
x | input of type S. |
Definition at line 31 of file promote_scalar.hpp.