qdldl

QDLDL, a free LDL factorization routine.

Apache 2.0 17 个版本
Bartolomeo Stellato, Paul Goulart, Goran Banjac <bartolomeo.stellato@gmail.com>
安装
pip install qdldl
poetry add qdldl
pipenv install qdldl
conda install qdldl
描述

qdldl-python

github actions

Python interface to the QDLDL free LDL factorization routine for quasi-definite linear systems: Ax = b.

Installation

This package can be directly installed via pip,

pip install qdldl

Usage

Initialize the factorization with

import qdldl
F = qdldl.Solver(A)

where A must be a square quasi-definite matrix in scipy sparse CSC format.

The algorithm internally converts the matrix into upper triangular format. If A is already upper-triangular, you can specify it with the argument upper=True to the qdldl.Solver constructor.

To solve the linear system for a right-hand side b, just write

x = F.solve(b)

To update the factorization without changing the sparsity pattern of A you can run

F.update(A_new)

where A_new is a sparse matrix in CSR format with the same sparsity pattern as A.

The algorithm internally converts A_new into upper triangular format. If A_new is already upper-triangular, you can specify it with the argument upper=True to the F.update function.

版本列表
0.1.9.post1 2026-02-19
0.1.7 2023-04-05
0.1.7.post5 2025-01-02
0.1.7.post4 2024-06-22
0.1.7.post3 2024-06-17
0.1.7.post2 2024-04-18
0.1.7.post1 2024-04-05
0.1.7.post0 2023-07-05
0.1.5 2021-01-04
0.1.5.post3 2023-01-15
0.1.5.post2 2022-03-31
0.1.5.post0 2022-03-31
0.1.3 2020-06-10
0.1.2 2020-06-10
0.1.1 2020-05-12
0.1.0 2020-03-21
0.0.1 2020-01-04