| Crates.io | bareiss |
| lib.rs | bareiss |
| version | 0.1.0 |
| created_at | 2020-06-23 15:05:24.007422+00 |
| updated_at | 2020-06-23 15:05:24.007422+00 |
| description | Calculates the determinant of an integer square matrix |
| homepage | |
| repository | https://github.com/teuron/bareiss |
| max_upload_size | |
| id | 257193 |
| size | 16,013 |
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.