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
Built Distributions
Hashes for udlr-0.0.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca4f50b356ea1006329bcd01136c43d74659326ff13b3a59db6fc786f3019b7 |
|
MD5 | bca852587d506bbc444fc9adc9f82052 |
|
BLAKE2b-256 | 2890b307dd95300d70d84c457110775ad805df0189649e28719296d21f1a3163 |
Hashes for udlr-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bd8bb39485da96b531c19f4faa170c3740706a335671695ec532c4a17dd2885 |
|
MD5 | cd086318c77a907e477f64b8e4103917 |
|
BLAKE2b-256 | a83549feeacf51ea4da52efa60eb2d76b3577c2e23082517ca1fb6486f9c3dd4 |
Hashes for udlr-0.0.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0cfd5bb48d8dc00821cb60dace6c3e8d1b1c8db0139f521b797ce4a795cfdc |
|
MD5 | a5c3c376899b5eff985db8bd4669e53e |
|
BLAKE2b-256 | 6704bd5e03588a7daa14dcbc4b76c6355dbe4ab08ff3ebc3e5c50b43e9fe0b61 |
Hashes for udlr-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8abe7f7ecd663997296f48d256daac756f80facfb4757db203e89b013fd2fcaa |
|
MD5 | 05dfc934f4c12a08cc18958f49b41ebf |
|
BLAKE2b-256 | 187d7db776cd3eb3484aa856f35273398c7be3c58ce67e88ac4b454457fad089 |
Hashes for udlr-0.0.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e050d732e1a48a069ab5dc6f74e6449781a8bb3b15a84b8075102c08b05ec138 |
|
MD5 | 83657620d9bb933373204427daa14ec4 |
|
BLAKE2b-256 | 6f36dff6a44e41e07b05b1695db937a5e1180134adc75d4d5aece9cb01418750 |
Hashes for udlr-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c661f59cb71a7484183f177c6892a150704ddfffce62127dd32cbef8d7a9a7 |
|
MD5 | 41054699fcb31b5b71d16bf0315d51dd |
|
BLAKE2b-256 | 14c768958b6dfbcae8f629e30fb3c213fcc4fde9206b15d050997b9d6c3efa7b |
Hashes for udlr-0.0.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c8b0ab508a77913a9b70e7c2d0ff98a7aa98dc3491c06badfd5ec20e712c3d |
|
MD5 | 8b1c5e8998c41a41ccf267bff106d16a |
|
BLAKE2b-256 | c1901a9ec9d6dbaf487359b49cfa1c61c07677da0f1527808b7949b551ec50ba |
Hashes for udlr-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59a5854bdeb01cd284762529c6be66edaf8d02195907714cd11d5bf446c826a0 |
|
MD5 | 55850b8a171542f221ed46d7fe909073 |
|
BLAKE2b-256 | b342e918e373a13a6a6133f3df570c5f22146fde5e12b3444413d316493adc98 |
Hashes for udlr-0.0.1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda9f84a7edc2a55fee576ea4cb1f6e1c18895e587b2f9df37c92a3b41999fa2 |
|
MD5 | f69961ce02160f5a9c3612f9864cb94b |
|
BLAKE2b-256 | 45555bf7f117bca82e58852b101b33336f0696c5b0fcde2a3d9e59bb1efded6c |
Hashes for udlr-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57302c51f73509eeb4c79186e02d9a8e4a220f3755b5bdc3715958528c23ee9e |
|
MD5 | af3b4b37cf194c39ec446dc788ac5c43 |
|
BLAKE2b-256 | 8ee1873ebeb11d84bc627860bffb3e479f59ee23f0001727777c1b5677e24d72 |