A collection of tools for special matrices with optimized implementations for scientific computing.
Currently includes:
ILMat: Identity plus positive semi-definite (PSD) low-rank matrixDLMat: Diagonal plus positive semi-definite (PSD) low-rank matrixBDLMat: Block diagonal plus low-rank matrix
pip install spmatClone the repository and install:
git clone https://github.com/ihmeuw-msca/spmat.git
cd spmat
pip install -e .- Python >= 3.10, < 3.14
- NumPy
- SciPy
To set up the development environment:
git clone https://github.com/ihmeuw-msca/spmat.git
cd spmat
pip install -e ".[dev]"Run tests:
pytestThis project is licensed under the BSD-2-Clause License - see the LICENSE file for details.