Skip to content

Conversation

AlexanderKalistratov
Copy link
Collaborator

FFT implementation validate arrays for supported strides/dtypes and if needed make a copy and cast (_copy_array).
Old implementation didn't validate for dtype in case of negative strides resulting in incorrect type selection in _commit_descriptor and failures on systems without float64 support.

Copy link
Contributor

github-actions bot commented Nov 27, 2024

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

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 @AlexanderKalistratov. I have only a minor comment.

@antonwolfy antonwolfy merged commit 88911fb into master Nov 27, 2024
48 checks passed
@antonwolfy antonwolfy deleted the fft_with_negative_stride_fix branch November 27, 2024 18:05
github-actions bot added a commit that referenced this pull request Nov 27, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <[email protected]>

---------

Co-authored-by: Anton <[email protected]> 88911fb
vtavana pushed a commit that referenced this pull request Dec 2, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <[email protected]>

---------

Co-authored-by: Anton <[email protected]>
vtavana pushed a commit that referenced this pull request Dec 2, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <[email protected]>

---------

Co-authored-by: Anton <[email protected]>
antonwolfy added a commit that referenced this pull request Dec 5, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <[email protected]>

---------

Co-authored-by: Anton <[email protected]>
@antonwolfy antonwolfy mentioned this pull request Dec 5, 2024
6 tasks
github-actions bot added a commit that referenced this pull request Dec 5, 2024
antonwolfy added a commit that referenced this pull request Dec 5, 2024
This PR backports of #2202 from development branch to
`maintenance/0.16.x`.
AlexanderKalistratov added a commit that referenced this pull request Feb 4, 2025
* Added keyword `method` to `correlate` function similar to [scipy
correlate](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.correlate.html)
* If `method == 'auto'` method is choosing automatically between
`direct` and `fft`
* Added implementation of fft-based correlation
* fft-based implementation may have accuracy issues, so it is validated
in non-standard way.

Depends on: #2180,
#2202

---------

Co-authored-by: Anton <[email protected]>
github-actions bot added a commit that referenced this pull request Feb 4, 2025
* Added keyword `method` to `correlate` function similar to [scipy
correlate](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.correlate.html)
* If `method == 'auto'` method is choosing automatically between
`direct` and `fft`
* Added implementation of fft-based correlation
* fft-based implementation may have accuracy issues, so it is validated
in non-standard way.

Depends on: #2180,
#2202

---------

Co-authored-by: Anton <[email protected]> da2eeba
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