1 #ifndef STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_SQUARE_HPP
2 #define STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_SQUARE_HPP
23 template <
typename T_y,
typename T_result>
25 const Eigen::Matrix<T_y,Eigen::Dynamic,Eigen::Dynamic>& y,
29 y.rows(),
"Rows of matrix",
30 y.cols(),
"columns of matrix",
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_square(const char *function, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name, T_result *result)
Return true if the specified matrix is square.