Skip to content

update tests for dpnp.fft.irfft and dpnp.fft.hfft #1958

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 4 commits into from
Aug 5, 2024
Merged

Conversation

vtavana
Copy link
Collaborator

@vtavana vtavana commented Jul 31, 2024

In this PR, tests for dpnp.fft.irfft and dpnp.fft.hfft (which calls back dpnp.fft.irfft) are updated to make sure input array is Hermitian. This means that for 1-D array 0th element of the array has zero imaginary part. In addition, if output array size is N and N is even, the N/2-th element (N/2+1 frequency point) of input (Nyquist mode) also has zero imaginary part.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

@vtavana vtavana self-assigned this Jul 31, 2024
@vtavana vtavana requested a review from antonwolfy July 31, 2024 18:37
@vtavana vtavana marked this pull request as draft July 31, 2024 18:54
Copy link
Contributor

github-actions bot commented Jul 31, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@vtavana vtavana force-pushed the unmute_rfft_tests branch from 88d11b3 to 5fb850e Compare August 2, 2024 19:25
@vtavana vtavana marked this pull request as ready for review August 2, 2024 19:26
@vtavana vtavana changed the title update tests for dpnp.fft.irfft update tests for dpnp.fft.irfft and dpnp.fft.hfft Aug 2, 2024
@vtavana vtavana force-pushed the unmute_rfft_tests branch from 5fb850e to 88030f5 Compare August 2, 2024 23:39
Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vtavana , I have only minor comment, but in general LGTM!

@vtavana vtavana merged commit d353299 into master Aug 5, 2024
43 of 45 checks passed
@vtavana vtavana deleted the unmute_rfft_tests branch August 5, 2024 23:14
github-actions bot added a commit that referenced this pull request Aug 5, 2024
* unmute tests

* reverse unintended changes

* address comment

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com> d353299
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants