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

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

#include <promote_elements.hpp>

Static Public Member Functions

static const T & promote (const T &u)
 Return input element. More...
 

Detailed Description

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

Struct with static function for elementwise type promotion.

This specialization promotes scalar values of the same type.

Template Parameters
Ttype of elements

Definition at line 36 of file promote_elements.hpp.

Member Function Documentation

§ promote()

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

Return input element.

Parameters
uinput of type T
Returns
input as type T

Definition at line 43 of file promote_elements.hpp.


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

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