From 498d7e3d4cb167bd4d3a53c3b12aeefe67d0b6f7 Mon Sep 17 00:00:00 2001 From: metric-space Date: Thu, 30 Dec 2021 21:18:58 -0500 Subject: [PATCH] Semi-unitary test checks for if rows or cols are orthonomal --- tests/linalg/svd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/linalg/svd.rs b/tests/linalg/svd.rs index fe93466d..deb3d38d 100644 --- a/tests/linalg/svd.rs +++ b/tests/linalg/svd.rs @@ -161,7 +161,7 @@ mod proptest_tests { assert_relative_eq!(m, &p* &u, epsilon = 1.0e-5); // semi-unitary check - //assert!(u.is_orthogonal(1.0e-5)); + assert!(u.is_orthogonal(1.0e-5) || u.transpose().is_orthogonal(1.0e-5)); // hermitian check assert_relative_eq!(p, p.adjoint(), epsilon = 1.0e-5);