Skip to content
/ bareiss Public

Bareiss algorithm to calculate determinant of an integer square matrix

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

teuron/bareiss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Bareiss algorithm to calculate determinant of an integer square matrix

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages