Mini Matrix Library
This project is a Rust library for basic linear algebra operations, including vector and matrix manipulations. It provides functionalities to perform various exercises related to vectors and matrices.
Features
- Vector and Matrix Operations
- Linear Combination
- Linear Interpolation (Lerp)
- Dot Product
- Norms (1-norm, 2-norm, ∞-norm)
- Angle Cosine
- Cross Product
- Matrix Multiplication
- Trace
- Transpose
- Reduced Row Echelon Form (RREF)
- Determinant
- Inverse
- Rank
Usage
The main
function allows you to run different exercises based on a command-line argument specifying the exercise number.
Running Exercises
To run a specific exercise, use the following command:
## Summary
#### Contributing
) for
## Implementation
)
### Installation
)
)
or use the following command:
And then import the library using:
extern crate mini_matrix;
Then import the modules and you're done!
use Matrix;
// Create a 2x2 matrix:
let a = from;
// Create a 2x3 matrix:
let b = ;
let c = a * b; // Matrix product of a and b
// Construct the product of `a` and `b` using the `matrix!` macro:
let expected = matrix!;
assert_eq!;