Skip to content

Commit 895a101

Browse files
Merge pull request #52 from IntelPython/verify-fix-for-mkl-in-2024-2-1
Undo workaround to verify the fix
2 parents e1ed130 + cdf2b36 commit 895a101

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mkl_random/tests/test_random.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,7 @@ def test_randomdist_normal(randomdist):
804804
np.testing.assert_allclose(actual, desired, atol=1e-8, rtol=1e-8)
805805

806806
rnd.seed(randomdist.seed, brng=randomdist.brng)
807-
workaround = rnd.normal(loc=.123456789, scale=2.0, size=(4, 2), method="BoxMuller2")
808-
actual = workaround[:3,:]
807+
actual = rnd.normal(loc=.123456789, scale=2.0, size=(3, 2), method="BoxMuller2")
809808
desired = np.array([[0.16673479781277187, 0.48153966449249175],
810809
[-3.4809986872165952, -0.8101190082826486],
811810
[-0.051937610825354905, 2.4088402362484342]])
@@ -903,8 +902,7 @@ def test_randomdist_standard_normal(randomdist):
903902
np.testing.assert_allclose(actual, desired, atol=1e-7, rtol=1e-10)
904903

905904
rnd.seed(randomdist.seed, brng=randomdist.brng)
906-
workaround = rnd.standard_normal(size=(4, 2), method='BoxMuller2')
907-
actual = workaround[:3, :]
905+
actual = rnd.standard_normal(size=(3, 2), method='BoxMuller2')
908906
desired = np.array([[0.021639004406385935, 0.17904143774624587],
909907
[-1.8022277381082976, -0.4667878986413243],
910908
[-0.08769719991267745, 1.1426917236242171]])

0 commit comments

Comments
 (0)