bareiss 0.1.0

Calculates the determinant of an integer square matrix
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 16.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • teuron/bareiss
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • teuron

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.