From ffd08c14cc68f54cc82b3c94dc2b08b3bdaf67ff Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 5 Oct 2021 22:29:34 +0200
Subject: [PATCH] compare absolute values

---
 bob/math/test_gsvd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/math/test_gsvd.py b/bob/math/test_gsvd.py
index d991c18..4eac868 100644
--- a/bob/math/test_gsvd.py
+++ b/bob/math/test_gsvd.py
@@ -107,7 +107,7 @@ def test_svd_signal():
                        [ 7.04651683e-01,  7.09553332e-01,  2.73037723e-04]])
 
   [U,S,V] = bob.math.svd(A)
-  numpy.testing.assert_allclose(U, U_ref, rtol=1e-5, atol=1e-6)
+  numpy.testing.assert_allclose(numpy.abs(U), numpy.abs(U_ref), rtol=1e-5, atol=1e-6)
   svd_relations(A)
 
 
-- 
GitLab