init: first working impl of determinant
types: added initial matrix definition and impl blocks
This commit is contained in:
commit
8bb435ab10
10 changed files with 279 additions and 0 deletions
9
src/main.rs
Normal file
9
src/main.rs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue