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

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

#include <promote_elements.hpp>

Static Public Member Functions

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

Detailed Description

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

Struct with static function for elementwise type promotion.

This base implementation promotes one scalar value to another.

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

Definition at line 16 of file promote_elements.hpp.

Member Function Documentation

§ promote()

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

Return input element.

Parameters
uinput of type S, assignable to type T
Returns
input as type T

Definition at line 23 of file promote_elements.hpp.


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

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