Bareiss algorithm calculates the determinant of an integer square matrix only using integer arithmetics.
Add this to your Cargo.toml:
[dependencies]
bareiss = "0.1"use bareiss::bareiss_determinant;
let mut matrix = vec![1, 2, 3, 10];
assert_eq!(bareiss_determinant(&mut matrix, 2).unwrap(), 4);Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.