Skip to content

Commit 7520051

Browse files
authored
Merge afa239e into 45ba570
2 parents 45ba570 + afa239e commit 7520051

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In addition, this release completes implementation of `dpnp.fft` module and adds
4141
* Added implementation of `dpnp.resize` and `dpnp.rot90` functions [#2030](https://github.com/IntelPython/dpnp/pull/2030)
4242
* Added implementation of `dpnp.require` function [#2036](https://github.com/IntelPython/dpnp/pull/2036)
4343

44-
### Change
44+
### Changed
4545

4646
* Extended pre-commit pylint check to `dpnp.fft` module [#1860](https://github.com/IntelPython/dpnp/pull/1860)
4747
* Reworked `vm` vector math backend to reuse `dpctl.tensor` functions around unary and binary functions [#1868](https://github.com/IntelPython/dpnp/pull/1868)
@@ -105,6 +105,7 @@ In addition, this release completes implementation of `dpnp.fft` module and adds
105105
* Updated `dpnp.fft` backend to depend on `INTEL_MKL_VERSION` flag to ensures that the appropriate code segment is executed based on the version of OneMKL [#2035](https://github.com/IntelPython/dpnp/pull/2035)
106106
* Use `dpctl::tensor::alloc_utils::sycl_free_noexcept` instead of `sycl::free` in `host_task` tasks associated with life-time management of temporary USM allocations [#2058](https://github.com/IntelPython/dpnp/pull/2058)
107107
* Improved implementation of `dpnp.kron` to avoid unnecessary copy for non-contiguous arrays [#2059](https://github.com/IntelPython/dpnp/pull/2059)
108+
* Updated the test suit for `dpnp.fft` module [#2071](https://github.com/IntelPython/dpnp/pull/2071)
108109

109110
### Fixed
110111

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ exclude-protected = ["_create_from_usm_ndarray"]
1616

1717
[tool.pylint.design]
1818
max-args = 11
19+
max-positional-arguments = 9
1920
max-locals = 30
2021
max-branches = 15
2122
max-returns = 8

tests/test_fft.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,13 @@ def test_fftn_out(self, axes, s):
564564
assert_dtype_allclose(iresult, iexpected, check_only_type_kind=True)
565565

566566
def test_negative_s(self):
567-
# stock NumPy 2.0, if s is -1, the whole input is used (no padding/trimming).
568-
a_np = numpy.empty((3, 4, 5), dtype=numpy.complex64)
567+
x1 = numpy.random.uniform(-10, 10, 60)
568+
x2 = numpy.random.uniform(-10, 10, 60)
569+
a_np = numpy.array(x1 + 1j * x2, dtype=numpy.complex64).reshape(3, 4, 5)
569570
a = dpnp.array(a_np)
570571

572+
# For dpnp and stock NumPy 2.0, if s is -1, the whole input is used
573+
# (no padding or trimming).
571574
result = dpnp.fft.fftn(a, s=(-1, -1), axes=(0, 2))
572575
expected = numpy.fft.fftn(a_np, s=(3, 5), axes=(0, 2))
573576
assert_dtype_allclose(result, expected, check_only_type_kind=True)

0 commit comments

Comments
 (0)