Skip to content

Fix rfft, rfftn and ihfft input dtypes when testing #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions array_api_tests/test_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_ifftn(x, data):


@given(
x=xps.arrays(dtype=xps.complex_dtypes(), shape=fft_shapes_strat),
x=xps.arrays(dtype=xps.floating_dtypes(), shape=fft_shapes_strat),
data=st.data(),
)
def test_rfft(x, data):
Expand Down Expand Up @@ -231,7 +231,7 @@ def test_irfft(x, data):


@given(
x=xps.arrays(dtype=xps.complex_dtypes(), shape=fft_shapes_strat),
x=xps.arrays(dtype=xps.floating_dtypes(), shape=fft_shapes_strat),
data=st.data(),
)
def test_rfftn(x, data):
Expand Down Expand Up @@ -279,7 +279,7 @@ def test_hfft(x, data):


@given(
x=xps.arrays(dtype=hh.all_floating_dtypes(), shape=fft_shapes_strat),
x=xps.arrays(dtype=xps.floating_dtypes(), shape=fft_shapes_strat),
data=st.data(),
)
def test_ihfft(x, data):
Expand Down