num::eig_sym¶
Defined in header <linear/eigen/jacobi_eig.hpp>
eigen_result eig_sym(const with_law<mat<real>, law::self_adjoint> &A, real tol = 1e-12,
idx max_sweeps = 100); // (1)
template <class M>
requires matrix_space<M> && (!claims<M, law::self_adjoint>)
eigen_result eig_sym(const M & /*untagged*/, real = 1e-12, idx = 100); // (2)
(1) Compute the eigenvalues and eigenvectors of a symmetric matrix: \(A = V \Lambda V^T\), eigenvalues sorted. Uses LAPACK dsyevd when available, else cyclic Jacobi.
(2) Reject an untagged matrix at compile time; tag it symmetric first.