Stan Math Library  2.14.0
reverse mode automatic differentiation
Public Types | List of all members
stan::math::promote_scalar_type< T, Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > > Struct Template Reference

Template metaprogram to calculate a type for a matrix whose underlying scalar is converted from the second template parameter type to the first. More...

#include <promote_scalar_type.hpp>

Public Types

typedef Eigen::Matrix< typename promote_scalar_type< T, S >::type, Eigen::Dynamic, Eigen::Dynamic > type
 The promoted type. More...
 

Detailed Description

template<typename T, typename S>
struct stan::math::promote_scalar_type< T, Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > >

Template metaprogram to calculate a type for a matrix whose underlying scalar is converted from the second template parameter type to the first.

This is the case for a vector container type.

Template Parameters
Tresult scalar type.
Sinput matrix scalar type

Definition at line 22 of file promote_scalar_type.hpp.

Member Typedef Documentation

§ type

template<typename T , typename S >
typedef Eigen::Matrix<typename promote_scalar_type<T, S>::type, Eigen::Dynamic, Eigen::Dynamic> stan::math::promote_scalar_type< T, Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > >::type

The promoted type.

Definition at line 29 of file promote_scalar_type.hpp.


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

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