qdldl-0.1.9.post1
توضیحات
QDLDL, a free LDL factorization routine.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | qdldl-0.1.9.post1 |
| نام | qdldl |
| نسخه کتابخانه | 0.1.9.post1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bartolomeo Stellato, Paul Goulart, Goran Banjac |
| ایمیل نویسنده | bartolomeo.stellato@gmail.com |
| آدرس صفحه اصلی | https://github.com/oxfordcontrol/qdldl-python/ |
| آدرس اینترنتی | https://pypi.org/project/qdldl/ |
| مجوز | Apache 2.0 |
# qdldl-python

Python interface to the [QDLDL](https://github.com/oxfordcontrol/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](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csc_matrix.html).
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy>=1.7 |
| - | scipy>=0.13.2 |
نحوه نصب
نصب پکیج whl qdldl-0.1.9.post1:
pip install qdldl-0.1.9.post1.whl
نصب پکیج tar.gz qdldl-0.1.9.post1:
pip install qdldl-0.1.9.post1.tar.gz