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. To use, include the file 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.5.tar.gz (112.3 kB view hashes)

Uploaded Source

Built Distributions

udlr-0.0.5-cp311-cp311-win_amd64.whl (168.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

udlr-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (711.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

udlr-0.0.5-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

udlr-0.0.5-cp311-cp311-macosx_10_15_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

udlr-0.0.5-cp310-cp310-win_amd64.whl (168.0 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

udlr-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (693.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

udlr-0.0.5-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

udlr-0.0.5-cp310-cp310-macosx_10_15_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

udlr-0.0.5-cp39-cp39-win_amd64.whl (168.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

udlr-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (696.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

udlr-0.0.5-cp39-cp39-macosx_11_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

udlr-0.0.5-cp39-cp39-macosx_10_15_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

udlr-0.0.5-cp38-cp38-win_amd64.whl (168.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

udlr-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (704.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

udlr-0.0.5-cp38-cp38-macosx_11_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

udlr-0.0.5-cp38-cp38-macosx_10_15_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ 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