#matrix #flat #true

flat_matrix

a crate that adds flat matrices

3 releases

0.1.2 Feb 21, 2025
0.1.1 Feb 17, 2025
0.1.0 Feb 16, 2025

#488 in Math

Download history 187/week @ 2025-02-12 168/week @ 2025-02-19 26/week @ 2025-02-26

381 downloads per month
Used in screen_buffer

MIT license

3KB

Flat Matrix

this is a library that adds flat matrices

use FlatMatrix::FlatMatrix;

fn main() {
    let matrix: FlatMatrix<bool> = FlatMatrix::new(10, 20, false);
    println!("{}", matrix.get(4, 4).unwrap()); //false
    matrix.set(4, 4, true);
    println!("{}", matrix.get(4, 4).unwrap()); //true
}

No runtime deps