This library provides tools for linear algebra. For a full documentation, please visit [docs.rs].
To use this library, add this to your Cargo.toml
:
toml
[dependencies]
libmat = "0.1.0"
```rust use libmat::mat::{Matrix, Vector}; use libmat::{matrix, vector}; // macros
let veca = vector![1,0,0]; let vecb = vector![0,1,0]; let vec_c = vector![0,0,1];
// Are the vectors perpendicular to each other? asserteq!(&veca * &vecb, 0); asserteq!(&veca * &vecc, 0); asserteq!(&vecc * &vec_b, 0);
let mata = Matrix::
// Are the matrices invertible? assertne!(mata.det(), 0); assertne!(matb.det(), 0); ```
A full changelog is available in CHANGELOG.md
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.