feat(matrix_op): add multiplication

matrix_ops: add matrix multiply capability
chore(fmt): flatten crate directory
tests(ops): add tests for multiplication
This commit is contained in:
Zhongheng Liu 2025-01-23 19:06:49 +02:00
commit 333c6c7281
Signed by: steven
GPG key ID: 805A28B071DAD84B
7 changed files with 70 additions and 40 deletions

View file

@ -9,20 +9,23 @@
//!
//! Examples:
//! ```
//! ...
//! use matrix::Matrix;
//! let m = Matrix::from_str("1,2,3\n4,5,6\n7,8,9");
//! use std::str::FromStr;
//! let m = Matrix::from_str("1,2,3\n4,5,6\n7,8,9").expect("Expected this to work");
//! println!("Matrix string formatting:\n{}", m);
//! println!("Evaluate determinant of matrix: {}", m.determinant());
//! println!("Transpose of matrix m:\n{}", m.transpose());
//! ...
//!
//! ```
pub mod types;
mod matrix;
pub mod error;
#[cfg(test)]
mod tests;
pub use matrix::Matrix;
pub fn test() {
println!("Testing code here");
}