Implementation-independent symmetric eigenpairs. More...
#include <Eigen/Core>#include <algorithm>#include <cmath>#include <limits>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | gpr |
| Gaussian-process regression, kernels, priors, and the searches that run on the surrogate. | |
| namespace | gpr::linalg |
| Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators, backend selection. | |
Functions | |
| double | gpr::linalg::symmetricBackwardError (Eigen::Index n, double scale) noexcept |
| bool | gpr::linalg::curvatureIsNegative (double lambda, double scale, Eigen::Index n) noexcept |
| void | gpr::linalg::canonicalizeEigenvectorSign (Eigen::Ref< Eigen::VectorXd > vector, double tolerance) noexcept |
| bool | gpr::linalg::signedEigenvectorLess (const Eigen::Ref< const Eigen::VectorXd > &left, const Eigen::Ref< const Eigen::VectorXd > &right) |
| void | gpr::linalg::canonicalizeEigenpairs (Eigen::Ref< Eigen::VectorXd > evals, Eigen::Ref< Eigen::MatrixXd > evecs) |
| evals has one entry per leading column of evecs. Both are rewritten. | |
| Eigen::Index | gpr::linalg::resolvedSingularRank (const Eigen::VectorXd &singular, double cutoff) |
Implementation-independent symmetric eigenpairs.
OpenBLAS and the reference LAPACK both return a valid eigenbasis, and they do not return the same one. A near-zero eigenvalue changes sign inside the backward error, a clustered pair is ordered by whichever vector the driver emitted first, and an eigenvector's sign is arbitrary. A search that thresholds a curvature at zero, or that steps along the first vector of a tie, then takes a different number of oracle calls.
The basis below is fixed from the values alone. Eigenvalues inside the symmetric backward error of zero are zero. Each vector's first largest-magnitude entry is positive. A cluster that the backward error cannot separate is ordered lexicographically on those signed vectors.
Definition in file CanonicalEigen.h.