Commit 9495de54 authored by René Fritze's avatar René Fritze Committed by René Fritze

[test|alogrithms] adjust 0 check tolerances for pod/svd_va

parent 49efef97
......@@ -25,7 +25,7 @@ def test_pod(vector_array, method):
# TODO assumption here masks a potential issue with the algorithm
# where it fails in internal lapack instead of a proper error
assume(len(A) > 1 or A.dim > 1)
assume(not contains_zero_vector(A))
assume(not contains_zero_vector(A, rtol=1e-13, atol=1e-13))
B = A.copy()
U, s = pod(A, method=method)
......
......@@ -4,7 +4,7 @@
import numpy as np
import pytest
from hypothesis import given, reproduce_failure, assume
from hypothesis import given, reproduce_failure, assume, settings
from hypothesis.strategies import sampled_from
from pymor.algorithms.basic import almost_equal
......@@ -18,13 +18,16 @@ methods = [method_of_snapshots, qr_svd]
@given(vector_arrays(count=1), sampled_from(methods))
@settings(deadline=None)
def test_method_of_snapshots(vector_array, method):
A = vector_array[0]
print(type(A))
print(A.dim, len(A))
# TODO
assume(not contains_zero_vector(A))
# TODO assumption here masks a potential issue with the algorithm
# where it fails in internal lapack instead of a proper error
assume(len(A) > 1 or A.dim > 1)
assume(not contains_zero_vector(A, rtol=1e-13, atol=1e-13))
B = A.copy()
U, s, Vh = method(A)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment