Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.math
Commits
ffd08c14
Commit
ffd08c14
authored
Oct 05, 2021
by
Amir MOHAMMADI
Browse files
compare absolute values
parent
103130f5
Pipeline
#54753
passed with stage
in 11 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/math/test_gsvd.py
View file @
ffd08c14
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment