#matrix #flat #menu

flat_matrix

a crate that adds flat matrices

2 releases

new 0.1.1 Feb 17, 2025
0.1.0 Feb 16, 2025

#480 in Math

Download history 150/week @ 2025-02-12

150 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