17 releases

Uses old Rust 2015

0.4.0 Feb 11, 2021
0.3.2 Aug 26, 2019
0.3.0 Apr 2, 2019
0.2.2 Mar 13, 2019
0.0.2 Mar 23, 2018

#2133 in Algorithms

Download history 12/week @ 2024-02-26 7/week @ 2024-03-11 285/week @ 2024-04-01

292 downloads per month
Used in lpn

GPL-2.0+

545KB
13K SLoC

C 11K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments M4 673 SLoC // 0.4% comments Automake 129 SLoC // 0.1% comments Visual Studio Project 123 SLoC

Rust bindings for M4RI

M4RI is a C library that provides efficient implementations of binary matrix operations. This crate aims to expose those functions to Rust and provides a nice wrapper around matrices, vectors and operations on both.

References

Martin Albrecht and Gregory Bard. The M4RI Library. https://malb.bitbucket.io/m4ri

See also the references section of the M4RI docs here.

This was written in the context of:

Thom Wiggers. Solving LPN using Large Covering Codes. Master's Thesis Radboud University, 2018.

See also https://thomwiggers.nl/research/msc-thesis/

Optional features

  • serde: Enable serialization
  • M4RI options:
    • m4rm_mul: Use m4rm as multiplication algorithm
    • naive_mul: Use the naive strategy
    • strassen_mul: Use the Strassen algorithm

Windows support

You may currently experience issues trying to build this on Windows. Help would be welcome (See issue #6).

Releases

Releases are available with DOI:

DOI

Dependencies

~0.9–1.8MB
~38K SLoC