1 #ifndef STAN_MATH_PRIM_MAT_ERR_IS_SYMMETRIC_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_IS_SYMMETRIC_HPP 20 template <
typename T_y>
22 const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y) {
27 Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>>::type
size_type;
29 size_type k = y.rows();
32 for (size_type m = 0; m < k; ++m) {
33 for (size_type n = m + 1; n < k; ++n) {
fvar< T > fabs(const fvar< T > &x)
T value_of(const fvar< T > &v)
Return the value of the specified variable.
bool is_square(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Return true if the matrix is square.
const double CONSTRAINT_TOLERANCE
The tolerance for checking arithmetic bounds In rank and in simplexes.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double e.
Primary template class for the metaprogram to compute the index type of a container.
bool is_symmetric(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Return true if the matrix is square, and no element not on the main diagonal is NaN.