Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

make array Hermitian before calling complex-to-real FFT#2444

Merged
antonwolfy merged 8 commits intomasterIntelPython/dpnp:masterfrom
make-HermitianIntelPython/dpnp:make-HermitianCopy head branch name to clipboard
May 15, 2025
Merged

make array Hermitian before calling complex-to-real FFT#2444
antonwolfy merged 8 commits intomasterIntelPython/dpnp:masterfrom
make-HermitianIntelPython/dpnp:make-HermitianCopy head branch name to clipboard

Conversation

@vtavana
Copy link
Contributor

@vtavana vtavana commented May 12, 2025

In this PR, input array is made Hermitian before calling complex-to-real FFT.

Input array should be Hermitian before calling complex-to-real FFT otherwise the behavior is undefined. Although it is user responsibility to validate this feature, NumPy and CuPy internally make the input array Hermitian. So, it is done in dpnp for consistency.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an 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?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@vtavana vtavana self-assigned this May 12, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2025

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

@coveralls
Copy link
Collaborator

coveralls commented May 12, 2025

Coverage Status

coverage: 71.711% (+0.02%) from 71.692%
when pulling b209de7 on make-Hermitian
into 282016e on master.

@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2025

Array API standard conformance tests for dpnp=0.18.0dev2=py312he4f9c94_20 ran successfully.
Passed: 1229
Failed: 0
Skipped: 9

@vtavana vtavana added this to the 0.18.0 release milestone May 13, 2025
@vtavana vtavana marked this pull request as ready for review May 13, 2025 01:44
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
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, LGTM

@antonwolfy antonwolfy merged commit 8b4a332 into master May 15, 2025
61 of 68 checks passed
@antonwolfy antonwolfy deleted the make-Hermitian branch May 15, 2025 08:44
github-actions bot added a commit that referenced this pull request May 15, 2025
In this PR, input array is made Hermitian before calling complex-to-real
FFT.

Input array should be Hermitian before calling complex-to-real FFT
otherwise the behavior is undefined. Although it is user responsibility
to validate this feature,
[NumPy](https://github.com/numpy/numpy/blob/maintenance/2.2.x/numpy/fft/_pocketfft_umath.cpp#L265)
and
[CuPy](https://github.com/cupy/cupy/blob/v13.4.1/cupy/fft/_fft.py#L109)
internally make the input array Hermitian. So, it is done in dpnp for
consistency. 8b4a332
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.