use minmath::Matrix;
fn main() {
let mat1 = Matrix::new([[1, 2], [3, 4]]);
let mat2 = Matrix::new([[5, 6], [7, 8]]);
let mat3 = mat1 + mat2;
println!("{}", mat3);
}
use minmath::Vector;
fn main() {
let vec1 = Vector::new([4, -3, 0]);
let vec2 = Vector::new([0, 3, 2]);
let vec3 = vec1 + vec2;
prinln!("{}", vec3);
}
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
minmath
currently has zero dependencies and I plan to keep it that way.
There are two ways to add the crate to your dependencies.
Add the following to your Cargo.toml
file.
[dependencies]
minmath = "*"
# Check https://crates.io/crates/minmath for the latest version
Run the following in your terminal.
cargo add minmath
This project is licensed under the MIT License. See LICENSE for details.