![]() |
Stan Math Library
2.15.0
reverse mode automatic differentiation
|
Struct with static function for elementwise type promotion. More...
#include <promote_elements.hpp>
Static Public Member Functions | |
static std::vector< T > | promote (const std::vector< S > &u) |
Return input vector of type S as vector of type T. More... | |
Struct with static function for elementwise type promotion.
This specialization promotes vector elements of different types which must be compatible with promotion.
T | type of promoted elements |
S | type of input elements, must be assignable to T |
Definition at line 21 of file promote_elements.hpp.
|
inlinestatic |
Return input vector of type S as vector of type T.
u | vector of type S, assignable to type T |
Definition at line 28 of file promote_elements.hpp.