mirror of
https://github.com/drewcassidy/vector-victor.git
synced 2024-09-01 14:58:35 +00:00
More work on fleshing out the Matrix class
LU decomposition doesnt work yet :sad:
This commit is contained in:
11
tests/ops.rs
11
tests/ops.rs
@ -1,6 +1,9 @@
|
||||
use generic_parameterize::parameterize;
|
||||
use std::convert::identity;
|
||||
use std::fmt::Debug;
|
||||
use std::ops;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
use vector_victor::Matrix;
|
||||
|
||||
#[parameterize(S = (i32, f32, u32), M = [1,4], N = [1,4])]
|
||||
@ -16,3 +19,11 @@ where
|
||||
assert_eq!(*ci, S::from(4));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_lu() {
|
||||
// let a: Matrix<f32, 3, 3> = Matrix::<f32, 3, 3>::identity();
|
||||
let a = Matrix::new([[1.0, 2.0], [3.0, 4.0]]);
|
||||
let (lu, _idx, _d) = a.lu().expect("What");
|
||||
println!("{:?}", lu);
|
||||
}
|
||||
|
Reference in New Issue
Block a user