gf2 2.1.0

Working in bit-space a.k.a. GF(2)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(non_snake_case)]
/// Prints an all ones matrix and its lower and upper triangular parts side by side.
///
/// SPDX-FileCopyrightText:  2025 Nessan Fitzmaurice <nzznfitz+gh@icloud.com>
/// SPDX-License-Identifier: MIT
use gf2::*;

fn main() {
    let n = 20;
    let A = BitMatrix::<u8>::ones(n, n);

    let line = "-".repeat(n * 3 + 10);
    println!("{line}");
    print!("{}", matrix::string_for_ABC(&A, &A.lower(), &A.strictly_lower()));
    println!("{line}");
    print!("{}", matrix::string_for_ABC(&A, &A.upper(), &A.strictly_upper()));
}