We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f20dcbb + cca80de commit a6eee3bCopy full SHA for a6eee3b
1 file changed
tests/inv.rs
@@ -25,3 +25,12 @@ fn inv_error() {
25
let a_inv = a.inv().unwrap();
26
println!("{:?}", a_inv);
27
}
28
+
29
+#[test]
30
+fn inv_2x2() {
31
+ // Related to issue #123 where this problem led to a wrongly computed inverse when using the
32
+ // `openblas` backend.
33
+ let a: Array2<f64> = array!([1.0, 2.0], [3.0, 4.0]);
34
+ let a_inv = a.inv().unwrap();
35
+ assert_close_l2!(&a_inv, &array!([-2.0, 1.0], [1.5, -0.5]), 1e-7);
36
+}
0 commit comments