Skip to content

Add dtype keyword argument to dpnp.fft.fftfreq and dpnp.fft.rfftfreq #2384

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 6 commits into from
Mar 25, 2025

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Mar 25, 2025

The PR proposes to align dpnp.fft.fftfreq and dpnp.fft.rfftfreq functions with 2024.12 revision of Python array API spec where dtype keyword was specified for the functions.

Additionally, implementation of dpnp.fft.fftfreq was reworked a bit to consume less memory and to avoid allocating temporary arrays.
Also docstrings of FFT functions were improved to add blank lines prior defaults values.

  • 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?

@antonwolfy antonwolfy self-assigned this Mar 25, 2025
@antonwolfy antonwolfy changed the title Add dtype keyword argument to dpnp.fftfreq and dpnp.rfftfreq Add dtype keyword argument to dpnp.fft.fftfreq and dpnp.fft.rfftfreq Mar 25, 2025
@antonwolfy antonwolfy added this to the 0.18.0 release milestone Mar 25, 2025
Copy link
Contributor

github-actions bot commented Mar 25, 2025

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

Copy link
Contributor

Array API standard conformance tests for dpnp=0.18.0dev0=py312he4f9c94_48 ran successfully.
Passed: 1005
Failed: 0
Skipped: 45

Copy link
Collaborator

@vtavana vtavana 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, @antonwolfy!

@antonwolfy antonwolfy merged commit 04bfac7 into master Mar 25, 2025
67 checks passed
@antonwolfy antonwolfy deleted the add-dtype-fftfreq-rfftfreq branch March 25, 2025 14:43
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 72.152% (+0.01%) from 72.142%
when pulling fd45a54 on add-dtype-fftfreq-rfftfreq
into 395c896 on master.

github-actions bot added a commit that referenced this pull request Mar 25, 2025
…freq` (#2384)

The PR proposes to align `dpnp.fft.fftfreq` and `dpnp.fft.rfftfreq`
functions with
[2024.12](https://data-apis.org/array-api/2024.12/extensions/generated/array_api.fft.fftfreq.html)
revision of Python array API spec where `dtype` keyword was specified
for the functions.

Additionally, implementation of `dpnp.fft.fftfreq` was reworked a bit to
consume less memory and to avoid allocating temporary arrays.
Also docstrings of FFT functions were improved to add blank lines prior
defaults values. 04bfac7
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