bareiss

Crates.iobareiss
lib.rsbareiss
version0.1.0
sourcesrc
created_at2020-06-23 15:05:24.007422
updated_at2020-06-23 15:05:24.007422
descriptionCalculates the determinant of an integer square matrix
homepage
repositoryhttps://github.com/teuron/bareiss
max_upload_size
id257193
size16,013
Lukas Abfalterer (teuron)

documentation

README

Bareiss algorithm

Bareiss algorithm calculates the determinant of an integer square matrix only using integer arithmetics.

Usage

Add this to your Cargo.toml:

[dependencies]
bareiss = "0.1"

Example


use bareiss::bareiss_determinant;

let mut matrix = vec![1, 2, 3, 10];
assert_eq!(bareiss_determinant(&mut matrix, 2).unwrap(), 4);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Commit count: 5

cargo fmt