Skip to main content

QDLDL, a free LDL factorization routine.

Project description

qdldl-python

image

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qdldl-0.1.3.tar.gz (69.1 kB view hashes)

Uploaded Source

Built Distributions

qdldl-0.1.3-cp38-cp38-win_amd64.whl (71.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

qdldl-0.1.3-cp38-cp38-manylinux2010_x86_64.whl (852.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

qdldl-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl (83.3 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

qdldl-0.1.3-cp37-cp37m-win_amd64.whl (72.9 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

qdldl-0.1.3-cp37-cp37m-manylinux2010_x86_64.whl (871.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

qdldl-0.1.3-cp37-cp37m-macosx_10_9_x86_64.whl (81.9 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

qdldl-0.1.3-cp36-cp36m-win_amd64.whl (72.9 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

qdldl-0.1.3-cp36-cp36m-manylinux2010_x86_64.whl (870.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

qdldl-0.1.3-cp36-cp36m-macosx_10_9_x86_64.whl (81.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

qdldl-0.1.3-cp35-cp35m-win_amd64.whl (72.9 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

qdldl-0.1.3-cp35-cp35m-manylinux2010_x86_64.whl (870.4 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

qdldl-0.1.3-cp35-cp35m-macosx_10_9_x86_64.whl (81.7 kB view hashes)

Uploaded CPython 3.5m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page