This repository contains pure python implementations of block conjugate gradient methods.
Install with pip install blockcg.
[1] O'Leary, D. (1980). The block conjugate gradient algorithm and related methods. Linear algebra and its applications, 29, 293–322.
[2] Ji, H., & Li, Y. (2017). A breakdown-free block conjugate gradient method. BIT Numerical Mathematics, 57(2), 379–403.
[3] Tichy, P., Meurant, G., & Šimonová, D. (2025). Block CG algorithms revisited. Numerical Algorithms, 1–27.