1#ifndef STAN_MATH_PRIM_FUN_EIGENVALUES_SYM_HPP
2#define STAN_MATH_PRIM_FUN_EIGENVALUES_SYM_HPP
21template <
typename EigMat, require_eigen_matrix_dynamic_t<EigMat>* =
nullptr,
22 require_not_st_var<EigMat>* =
nullptr>
25 return Eigen::Matrix<value_type_t<EigMat>, -1, 1>(0, 1);
28 const PlainMat& m_eval = m;
31 Eigen::SelfAdjointEigenSolver<PlainMat> solver(m_eval,
32 Eigen::EigenvaluesOnly);
33 return solver.eigenvalues();
void check_symmetric(const char *function, const char *name, const matrix_cl< T > &y)
Check if the matrix_cl is symmetric.
matrix_cl< double > eigenvalues_sym(const matrix_cl< double > &m)
typename plain_type< T >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...