1 #ifndef __STAN__MATH__MATRIX__VALIDATE_MULTIPLICABLE_HPP__
2 #define __STAN__MATH__MATRIX__VALIDATE_MULTIPLICABLE_HPP__
11 template <
typename T1,
int R1,
int C1,
typename T2,
int R2,
int C2>
13 const Eigen::Matrix<T2,R2,C2>& x2,
15 if (x1.cols() == x2.rows())
return;
17 ss <<
"error in call to " << msg
18 <<
"; require cols of arg1 to match rows of arg2, but found "
19 <<
" arg1 rows=" << x1.rows() <<
" arg1 cols=" << x1.cols()
20 <<
" arg2 rows=" << x2.rows() <<
" arg2 cols=" << x2.cols();
21 throw std::domain_error(ss.str());