1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_SQUARE_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_SQUARE_HPP 25 template <
typename T_y>
29 const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y) {
31 "Expecting a square matrix; rows of ", name, y.rows(),
32 "columns of ", name, y.cols());
void check_size_match(const char *function, const char *name_i, T_size1 i, const char *name_j, T_size2 j)
Check if the provided sizes match.
void check_square(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is square.