Skip to main content

A C++ Sparse Matrix Library

Project description

Up-Down-Left-Right: A C++ Sparse Matrix Library

Up-down-left-right (UDLR) is a templated sparse matrix library designed the facilitate the development of algorithms that run on sparse graphs. The core datastructure is a quadrupally linked list representing the non-zero entries of the matrix. Every entry in this structure is connected with its immediate neighbours in the up, down, left, and right directions. The quad-directional linked layout enables rapid matrix traversal both horizontally and vertically, making it highly efficient for algorithms such as Gaussian elimination. UDLR is fully templated, allowing for arbitrary meta data to be appended to each list entry. This is particularly useful for graph algorithms such as belief propagation in which messages are passed between nodes.

CPP Installation

UDLR is a header only libary. Simply include the file and udlr.hpp and enjoy the library!

Python Installation

Install using pip. Navigate to the repository root and run:

pip install -Ue .

CPP Features

UDLR has initially been developed to provide sparse matrix operations over a GF2 field for applications in classical and quantum coding theory. As such, the sparse GF2 matrix is currently the most developed feature of this package. However, more functiionality will be added soon. The current fuctionality is listed below:

  • A sparse GF2 matrix class. This class can be initialised with a custom node type that can contain user defined meta data.
  • Function for performing linear algebra on GF2 matrices. Current funcitons include rank calculation, nullspace computation, LU decomposition and matrix inversion.
  • Python bindings (via cython) for linear algebra operations on sparse GF2 matrices.

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

udlr-0.0.3.tar.gz (112.3 kB view hashes)

Uploaded Source

Built Distributions

udlr-0.0.3-cp312-cp312-win_amd64.whl (165.9 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

udlr-0.0.3-cp312-cp312-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

udlr-0.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (696.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

udlr-0.0.3-cp312-cp312-macosx_11_0_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ x86-64

udlr-0.0.3-cp311-cp311-win_amd64.whl (168.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

udlr-0.0.3-cp311-cp311-musllinux_1_1_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

udlr-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (714.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

udlr-0.0.3-cp311-cp311-macosx_11_0_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ x86-64

udlr-0.0.3-cp310-cp310-win_amd64.whl (167.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

udlr-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

udlr-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (701.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

udlr-0.0.3-cp310-cp310-macosx_11_0_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

udlr-0.0.3-cp39-cp39-win_amd64.whl (168.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

udlr-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

udlr-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (704.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

udlr-0.0.3-cp39-cp39-macosx_11_0_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ 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