![]() |
Stan Math Library
2.10.0
reverse mode automatic differentiation
|
Struct to hold static function for promoting underlying scalar types. More...
#include <promote_scalar.hpp>
Static Public Member Functions | |
static std::vector< typename promote_scalar_type< T, S >::type > | apply (const std::vector< S > &x) |
Return the standard vector consisting of the recursive promotion of the elements of the input standard vector to the scalar type specified by the return template parameter. More... | |
Struct to hold static function for promoting underlying scalar types.
This specialization is for standard vector inputs.
T | return scalar type |
S | input type for standard vector elements in static nested function, which must have an underlying scalar type assignable to T. |
Definition at line 22 of file promote_scalar.hpp.
|
inlinestatic |
Return the standard vector consisting of the recursive promotion of the elements of the input standard vector to the scalar type specified by the return template parameter.
x | input standard vector. |
Definition at line 32 of file promote_scalar.hpp.