Automatic Differentiation
 
Loading...
Searching...
No Matches
is_square.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_IS_SQUARE_HPP
2#define STAN_MATH_PRIM_ERR_IS_SQUARE_HPP
3
7
8namespace stan {
9namespace math {
10
18template <typename EigMat, require_eigen_t<EigMat>* = nullptr>
19inline bool is_square(const EigMat& y) {
20 return is_size_match(y.rows(), y.cols());
21}
22
23} // namespace math
24} // namespace stan
25#endif
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.
bool is_square(const EigMat &y)
Return true if the matrix is square.
Definition is_square.hpp:19
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9