@@ -1645,11 +1645,7 @@ def test_eigenvalue(func, shape, device):
16451645 # get a symmetric array for eigh() and eigvalsh() or
16461646 # non-symmetric for eig() and eigvals()
16471647 is_hermitian = func in ("eigh, eigvalsh" )
1648- # Set seed_value=81 to prevent
1649- # random generation of the input singular matrix
1650- a = generate_random_numpy_array (
1651- shape , dtype , hermitian = is_hermitian , seed_value = 81
1652- )
1648+ a = generate_random_numpy_array (shape , dtype , hermitian = is_hermitian )
16531649 dp_a = dpnp .array (a , device = device )
16541650
16551651 expected_queue = dp_a .sycl_queue
@@ -1661,15 +1657,15 @@ def test_eigenvalue(func, shape, device):
16611657 # Check the eigenvalue decomposition
16621658 if a .ndim == 2 :
16631659 assert_allclose (
1664- dp_a @ dp_vec , dp_vec @ dpnp .diag (dp_val ), rtol = 1e-5 , atol = 1e-5
1660+ dp_a @ dp_vec , dp_vec @ dpnp .diag (dp_val ), rtol = 1e-4 , atol = 1e-4
16651661 )
16661662 else : # a.ndim == 3
16671663 for i in range (a .shape [0 ]):
16681664 assert_allclose (
16691665 dp_a [i ].dot (dp_vec [i ]),
16701666 dp_val [i ] * dp_vec [i ],
1671- rtol = 1e-5 ,
1672- atol = 1e-5 ,
1667+ rtol = 1e-4 ,
1668+ atol = 1e-4 ,
16731669 )
16741670 assert dp_vec .shape == np_vec .shape
16751671 assert dp_vec .dtype == np_vec .dtype
@@ -1682,7 +1678,7 @@ def test_eigenvalue(func, shape, device):
16821678 dp_val = getattr (dpnp .linalg , func )(dp_a )
16831679 np_val = getattr (numpy .linalg , func )(a )
16841680
1685- assert_allclose (dp_val , np_val , rtol = 1e-05 , atol = 1e-05 )
1681+ assert_allclose (dp_val , np_val , rtol = 1e-04 , atol = 1e-04 )
16861682 assert dp_val .shape == np_val .shape
16871683 assert dp_val .dtype == np_val .dtype
16881684
0 commit comments