1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_MATCHING_DIMS_HPP
2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_MATCHING_DIMS_HPP
36 template <
typename T1,
typename T2,
int R1,
int C1,
int R2,
int C2>
39 const Eigen::Matrix<T1, R1, C1>& y1,
41 const Eigen::Matrix<T2, R2, C2>& y2) {
43 "Rows of ", name1, y1.rows(),
44 "rows of ", name2, y2.rows());
46 "Columns of ", name1, y1.cols(),
47 "columns of ", name2, y2.cols());
bool check_matching_dims(const char *function, const char *name1, const Eigen::Matrix< T1, R1, C1 > &y1, const char *name2, const Eigen::Matrix< T2, R2, C2 > &y2)
Return true if the two matrices are of the same size.
bool check_size_match(const char *function, const char *name_i, T_size1 i, const char *name_j, T_size2 j)
Return true if the provided sizes match.