dpnp
dpnp copied to clipboard
update tests for `dpnp.fft.irfft` and `dpnp.fft.hfft`
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.
- [x] Have you provided a meaningful PR description?
- [x] 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?