Automatic Differentiation
 
Loading...
Searching...
No Matches
eigenvectors_sym.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_EIGENVECTORS_SYM_HPP
2#define STAN_MATH_OPENCL_PRIM_EIGENVECTORS_SYM_HPP
3#ifdef STAN_OPENCL
4
7
8namespace stan {
9namespace math {
10
12 check_nonzero_size("eigenvectors_sym", "m", m);
13 check_symmetric("eigenvalues_sym", "m", m);
14
17 return eigenvectors;
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 > eigenvectors_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 symmetric_eigensolver(const matrix_cl< double > &A, matrix_cl< double > &eigenvalues, matrix_cl< double > &eigenvectors)
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 ...
Definition fvar.hpp:9