Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::promote_elements< std::vector< T >, std::vector< S > > Struct Template Reference

Detailed Description

template<typename T, typename S>
struct stan::math::promote_elements< std::vector< T >, std::vector< S > >

Struct with static function for elementwise type promotion.

This specialization promotes vector elements of different types which must be compatible with promotion.

Template Parameters
Ttype of promoted elements
Stype of input elements, must be assignable to T

Definition at line 59 of file promote_elements.hpp.

#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.
 

The documentation for this struct was generated from the following file: