1 #ifndef STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_MATCHING_DIMS_HPP
2 #define STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_MATCHING_DIMS_HPP
13 template <
typename T1,
typename T2,
int R1,
int C1,
int R2,
int C2,
16 const Eigen::Matrix<T1,R1,C1>& y1,
18 const Eigen::Matrix<T2,R2,C2>& y2,
22 y1.rows(),
"Rows of matrix 1",
23 y2.rows(),
"Rows of matrix 2",
26 y1.cols(),
"Columns of matrix 1",
27 y2.cols(),
"Columns of matrix 2",
bool check_size_match(const char *function, T_size1 i, const char *name_i, T_size2 j, const char *name_j, T_result *result)
bool check_matching_dims(const char *function, const Eigen::Matrix< T1, R1, C1 > &y1, const char *name1, const Eigen::Matrix< T2, R2, C2 > &y2, const char *name2, T_result *result)