Made tests more readable - missed a function
This commit is contained in:
parent
9bb6325846
commit
1716dd86db
12
tests/mat.rs
12
tests/mat.rs
|
@ -54,13 +54,11 @@ macro_rules! test_cholesky_impl(
|
||||||
|
|
||||||
let result = na::cholesky(&randmat);
|
let result = na::cholesky(&randmat);
|
||||||
|
|
||||||
match result {
|
assert!(result.is_ok());
|
||||||
Ok(v) => {
|
|
||||||
let recomp = v * na::transpose(&v);
|
let v = result.unwrap();
|
||||||
assert!(na::approx_eq(&randmat, &recomp));
|
let recomp = v * na::transpose(&v);
|
||||||
},
|
assert!(na::approx_eq(&randmat, &recomp));
|
||||||
Err(_) => assert!(false),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue