Skip to content

Commit 52bb21a

Browse files
committed
Use rand_hpd for rcond test
1 parent 993e047 commit 52bb21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/solve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn solve_random_t() {
2323
fn rcond() {
2424
macro_rules! rcond {
2525
($elem:ty, $rows:expr, $atol:expr) => {
26-
let a: Array2<$elem> = random(($rows, $rows));
26+
let a: Array2<$elem> = random_hpd($rows);
2727
let rcond = 1. / (a.opnorm_one().unwrap() * a.inv().unwrap().opnorm_one().unwrap());
2828
assert_aclose!(a.rcond().unwrap(), rcond, $atol);
2929
assert_aclose!(a.rcond_into().unwrap(), rcond, $atol);

0 commit comments

Comments
 (0)