1 #ifndef STAN_MATH_PRIM_MAT_ERR_IS_MATCHING_DIMS_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_IS_MATCHING_DIMS_HPP 26 template <
typename T1,
typename T2,
int R1,
int C1,
int R2,
int C2>
28 const Eigen::Matrix<T2, R2, C2>& y2) {
49 template <
bool check_compile,
typename T1,
typename T2,
int R1,
int C1,
int R2,
52 const Eigen::Matrix<T2, R2, C2>& y2) {
53 return !(check_compile && (R1 != R2 || C1 != C2)) &&
is_matching_dims(y1, y2);
bool is_matching_dims(const Eigen::Matrix< T1, R1, C1 > &y1, const Eigen::Matrix< T2, R2, C2 > &y2)
Return true if the two matrices are of the same size.
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.