计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
nystrom_pcg_solver【效率与协作】Solve regularized PSD systems with randomized Nyström preconditioned conjugate gradients and log convergence evidence.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to reproduce the paper's Algorithm 5.1 on a PSD linear system (A + mu I)x=b. It should call or mirror the generated Nyström factorization and preconditioner contracts rather than bypassing them.
b.mu > 0.ell, tolerance, maximum iterations, and random seed.randomized_nystrom_factorization.nystrom_preconditioner.Run:
python scripts/pcg.py --self-test
python tests/test_pcg.py
The tests use a deterministic ill-conditioned PSD system and require Nyström PCG to converge in fewer iterations than ordinary CG.
This dense script is designed for bounded recovery experiments. For large paper-scale systems, replace dense arrays with matvec closures while preserving the same logging contract.