Stan Math Library  2.15.0
reverse mode automatic differentiation
Public Types | List of all members
stan::math::common_type< T1, T2 > Struct Template Reference

Struct which calculates type promotion given two types. More...

#include <common_type.hpp>

Public Types

typedef boost::math::tools::promote_args< T1, T2 >::type type
 

Detailed Description

template<typename T1, typename T2>
struct stan::math::common_type< T1, T2 >

Struct which calculates type promotion given two types.

This is the base implementation for scalar types. Allowed promotions are:

Promotion between differing var types is not allowed, i.e., cannot promote fvar to var or vice versa.

Template Parameters
T1scalar type
T2scalar type

Definition at line 24 of file common_type.hpp.

Member Typedef Documentation

§ type

template<typename T1, typename T2>
typedef boost::math::tools::promote_args<T1, T2>::type stan::math::common_type< T1, T2 >::type

Definition at line 25 of file common_type.hpp.


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

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