libmat

This library provides tools for linear algebra. For a full documentation, please visit [docs.rs].

Usage

To use this library, add this to your Cargo.toml:

toml [dependencies] libmat = "0.1.0"

Example

```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::::one(3); let matb = matrix!{ 1, 2, 3; 3, 2, 1; 2, 1, 3; };

// Are the matrices invertible? assertne!(mata.det(), 0); assertne!(matb.det(), 0); ```

Changes

A full changelog is available in CHANGELOG.md

License

Licensed under either of

at your option.

Contribution

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.