1#ifndef STAN_MATH_PRIM_FUN_EIGENVECTORS_SYM_HPP
2#define STAN_MATH_PRIM_FUN_EIGENVECTORS_SYM_HPP
11template <
typename EigMat, require_eigen_t<EigMat>* =
nullptr,
12 require_not_st_var<EigMat>* =
nullptr>
13Eigen::Matrix<value_type_t<EigMat>, Eigen::Dynamic, Eigen::Dynamic>
16 return Eigen::Matrix<value_type_t<EigMat>, -1, -1>(0, 0);
19 const PlainMat& m_eval = m;
22 Eigen::SelfAdjointEigenSolver<PlainMat> solver(m_eval);
23 return solver.eigenvectors();
void check_symmetric(const char *function, const char *name, const matrix_cl< T > &y)
Check if the matrix_cl is symmetric.
matrix_cl< double > eigenvectors_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 ...