Dense row-major matrix with optional GPU storage.
Backend enum for linear algebra operations.
Backend
Selects which backend handles a linalg operation.
constexpr Backend lapack_backend
EigenResult eig_sym(const Matrix &A, real tol=1e-12, idx max_sweeps=100, Backend backend=lapack_backend)
Full eigendecomposition of a real symmetric matrix.
Full eigendecomposition result: A = V * diag(values) * V^T.
Vector values
Eigenvalues in ascending order.
bool converged
Whether off-diagonal norm fell below tol.
idx sweeps
Number of Jacobi sweeps performed.
Matrix vectors
Eigenvectors as columns of an nxn orthogonal matrix.