Stan Math Library  2.15.0
reverse mode automatic differentiation
Static Public Member Functions | List of all members
stan::math::promote_elements< std::vector< T >, std::vector< T > > Struct Template Reference

Struct with static function for elementwise type promotion. More...

#include <promote_elements.hpp>

Static Public Member Functions

static const std::vector< T > & promote (const std::vector< T > &u)
 Return input vector. More...
 

Detailed Description

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

Struct with static function for elementwise type promotion.

This specialization promotes vector elements of the same type.

Template Parameters
Ttype of elements

Definition at line 45 of file promote_elements.hpp.

Member Function Documentation

§ promote()

template<typename T >
static const std::vector<T>& stan::math::promote_elements< std::vector< T >, std::vector< T > >::promote ( const std::vector< T > &  u)
inlinestatic

Return input vector.

Parameters
uvector of type T
Returns
vector of type T

Definition at line 52 of file promote_elements.hpp.


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

     [ Stan Home Page ] © 2011–2016, Stan Development Team.