1 #ifndef STAN__MATH__MATRIX__COMMON_TYPE_HPP
2 #define STAN__MATH__MATRIX__COMMON_TYPE_HPP
6 #include <boost/math/tools/promotion.hpp>
12 template <
typename T1,
typename T2>
14 typedef typename boost::math::tools::promote_args<T1,T2>::type
type;
17 template <
typename T1,
typename T2>
19 typedef std::vector<typename common_type<T1,T2>::type>
type;
22 template <
typename T1,
typename T2,
int R,
int C>
23 struct common_type<Eigen::Matrix<T1,R,C>, Eigen::Matrix<T2,R,C> > {
24 typedef Eigen::Matrix<typename common_type<T1,T2>::type,R,C>
type;
std::vector< typename common_type< T1, T2 >::type > type
Eigen::Matrix< typename common_type< T1, T2 >::type, R, C > type
boost::math::tools::promote_args< T1, T2 >::type type