Skip to content
Snippets Groups Projects
Commit c5b0e8c6 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixing SVD test

parent a904822d
Branches
Tags
1 merge request!18Fixing SVD test
Pipeline #
...@@ -104,7 +104,7 @@ def test_svd_signal(): ...@@ -104,7 +104,7 @@ def test_svd_signal():
U_ref = numpy.array([[ 2.20825004e-03, -1.80819459e-03, -9.99995927e-01], U_ref = numpy.array([[ 2.20825004e-03, -1.80819459e-03, -9.99995927e-01],
[ -7.09549949e-01, 7.04649416e-01, -2.84101853e-03], [ -7.09549949e-01, 7.04649416e-01, -2.84101853e-03],
[ -7.04651683e-01, -7.09553332e-01, -2.73037723e-04]]) [ 7.04651683e-01, 7.09553332e-01, 2.73037723e-04]])
[U,S,V] = bob.math.svd(A) [U,S,V] = bob.math.svd(A)
nose.tools.eq_((abs(U-U_ref) < 1e-8).all(), True) nose.tools.eq_((abs(U-U_ref) < 1e-8).all(), True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment