Rust library that implements bit matrices. You can check the documentation here.
Built on top of contain-rs/bit-vec.
Implements bit matrices.
Examples
Gets a mutable reference to the square bit matrix within this rectangular matrix, then performs a transitive closure.
use BitMatrix;
let mut matrix = new;
matrix.set;
matrix.set;
matrix.set;
assert!;
matrix.reflexive_closure;
assert!;
assert!;
assert!;
assert!;
This simple example calculates the transitive closure of 4x4 bit matrix.
use BitMatrix;
let mut matrix = new;
let points = &;
for & in points
matrix.transitive_closure;
let mut expected_matrix = new;
for i in 0..4
assert_eq!;
License
Dual-licensed for compatibility with the Rust project.
Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0, or the MIT license: http://opensource.org/licenses/MIT, at your option.