class gpr::linalg::linop::LanczosVarianceCache

Overview

Lanczos basis of K from one start vector, kept with full reorthogonalisation so that the cached quadratic forms c^T Q T^{-1} Q^T c are lower bounds on c^T K^{-1} c with a computable gap. More…

#include <gpr/linalg/linop/Krylov.h>
 
class LanczosVarianceCache {
public:
    // structs
 
    struct Quadratic;
 
    // construction
 
    LanczosVarianceCache(const SymmetricOperator& K, const Eigen::VectorXd& start);
 
    // methods
 
    Quadratic quadraticDiagonal(const Eigen::MatrixXd& C, double tolerance, double lambda_min, double flop_budget);
    Eigen::Index steps() const;
};

Detailed Documentation

Lanczos basis of K from one start vector, kept with full reorthogonalisation so that the cached quadratic forms c^T Q T^{-1} Q^T c are lower bounds on c^T K^{-1} c with a computable gap.

Methods

Quadratic quadraticDiagonal(const Eigen::MatrixXd& C, double tolerance, double lambda_min, double flop_budget)

Extend the basis until every column’s bound is below tolerance or the next step would exceed flop_budget. lambda_min is a lower bound on the smallest eigenvalue of K (the noise floor).