1 #ifndef STAN_MATH_PRIM_MAT_FUN_COMMON_TYPE_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_COMMON_TYPE_HPP
5 #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