init: first working impl of determinant

types: added initial matrix definition and impl blocks
This commit is contained in:
Zhongheng Liu 2025-01-22 12:32:22 +02:00
commit 8bb435ab10
Signed by: steven
GPG key ID: 805A28B071DAD84B
10 changed files with 279 additions and 0 deletions

9
src/main.rs Normal file
View file

@ -0,0 +1,9 @@
use types::matrix::Matrix;
mod types;
fn main() {
println!("Hello, world!");
let m = Matrix::from_str("1,2\n3,4".to_string());
let d = m.determinant();
println!("{}", d);
}