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

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

#include <common_type.hpp>

Public Types

typedef Eigen::Matrix< typename common_type< T1, T2 >::type, R, C > type
 

Detailed Description

template<typename T1, typename T2, int R, int C>
struct stan::math::common_type< Eigen::Matrix< T1, R, C >, Eigen::Matrix< T2, R, C > >

Struct which calculates type promotion over two types.

This specialization is for matrix types.

Template Parameters
T1type of elements contained in Eigen::Matrix<T1>
T2type of elements contained in Eigen::Matrix<T2>
Rnumber of rows
Cnumber of columns

Definition at line 21 of file common_type.hpp.

Member Typedef Documentation

§ type

template<typename T1 , typename T2 , int R, int C>
typedef Eigen::Matrix<typename common_type<T1, T2>::type, R, C> stan::math::common_type< Eigen::Matrix< T1, R, C >, Eigen::Matrix< T2, R, C > >::type

Definition at line 22 of file common_type.hpp.


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

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