| Crates.io | SparseDOKs |
| lib.rs | SparseDOKs |
| version | 0.1.0 |
| created_at | 2025-11-21 18:49:22.171936+00 |
| updated_at | 2025-11-21 18:49:22.171936+00 |
| description | Sparse-matrix DOK implementations. |
| homepage | |
| repository | https://github.com/AmeMeida/projeto.git |
| max_upload_size | |
| id | 1943993 |
| size | 118,877 |
Pure-rust implementations of common matrix operations in sparse form.
New implementations must adhere to the MatrixOp trait.
A DOK implementation using Rust's HashMap, with fast insertion, reads and
optimized multiplication.
Recommended as an intermediate format or if frequent reads and writes are needed.
A DOK implementation using Rust's BTreeMap, with stable and predictable
reads and insertions.
Recommended if a lower memory footprint is needed or if ordered access is desirable,
such as column or row selection.
Has much better cache-locality than the HashMap implementation for repeated
matrix-matrix multiplications.
A classic full vector of vectors matrix implementation, ideal for small matrices, high densities, comparative benchmarking and probabilistic testing of the other implementations.
All of the operations on DenseMatrix are implemented in the most naive way
possible, with only cache-locality optimizations present.
O(1) transposition for all 3 implementations.