计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
nystrom_preconditioner【效率与协作】Build and apply the inverse action of the Nyström preconditioner for regularized PSD linear systems.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill after obtaining U, lambda_hat from a randomized Nyström factorization. It provides the inverse preconditioner action used by Nyström PCG and dense diagnostics for small recovery experiments.
U: orthonormal Nyström basis.lambda_hat: nonnegative approximate eigenvalues.mu > 0: regularization parameter.apply_inverse_preconditioner(U, lambda_hat, mu, r) result.A + mu I versus the symmetrically preconditioned matrix.mu, and approximate orthonormality.lambda_hat if necessary.sigma = lambda_hat[-1] + mu.P^{-1} by scaling captured components with sigma / (lambda_hat_i + mu) and leaving orthogonal components unchanged.Run:
python scripts/preconditioner.py --self-test
python tests/test_preconditioner.py
The tests verify inverse-action shape, dimension checks, and condition-number reduction on a diagonal PSD example.
Dense condition-number diagnostics are intended for small experiments. Large systems should only use the vector action.