Automatic Differentiation
 
Loading...
Searching...
No Matches
eigenvalues_sym.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_EIGENVALUES_SYM_HPP
2#define STAN_MATH_OPENCL_PRIM_EIGENVALUES_SYM_HPP
3#ifdef STAN_OPENCL
4
7
8namespace stan {
9namespace math {
10
12 check_nonzero_size("eigenvalues_sym", "m", m);
13 check_symmetric("eigenvalues_sym", "m", m);
14
16 symmetric_eigensolver<false>(m, eigenvalues, eigenvectors);
17 return eigenvalues;
18}
19
20} // namespace math
21} // namespace stan
22#endif
23#endif
Represents an arithmetic matrix on the OpenCL device.
Definition matrix_cl.hpp:47
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)
Eigen::Matrix< complex_return_t< value_type_t< EigMat > >, -1, -1 > eigenvectors(const EigMat &m)
Return the eigenvectors of a (real-valued) matrix.
void check_nonzero_size(const char *function, const char *name, const T_y &y)
Check if the specified matrix/vector is of non-zero size.
Eigen::Matrix< complex_return_t< value_type_t< EigMat > >, -1, 1 > eigenvalues(const EigMat &m)
Return the eigenvalues of a (real-valued) matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...