Uh oh!
There was an error while loading. Please reload this page.
Add pyfftw sdp - #1132
Conversation
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1132 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
@NimaSarajpoor I've left some comments for you to address. I think we can afford to be clearer since all of this pyfftw stuff will be hard to maintain. We should probably be as verbose (and add more comments cross referencing their docs as possible). I'll do another few passes after you've responded and made modifications. I think this pyfftw stuff needs to be crystal clear
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
NimaSarajpoor
commented
May 17, 2026
@seanlaw |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
seanlaw
commented
May 22, 2026
@NimaSarajpoor This might be a distraction but a (very, very small) part of me was wondering if we should be using a closure instead of a class: https://realpython.com/python-closure/ I don't know if it makes things easier/harder to read. Given all of the array allocations, maybe a class is the right thing to use. I just wanted to bring it to your attention since I'm not sure we're getting the full benefits of a class since:
Just something to consider. No pressure though. |
Uh oh!
There was an error while loading. Please reload this page.
seanlaw
commented
Jun 28, 2026
I don't think I understand what you mean by "user cannot check if the array is resized". Can you articulate what could possibly go wrong? What would somebody need/want to verify? Do the arrays automatically get resized if, later, somebody uses an array that is larger than |
Yes. Based on the current design, if
Please ignore. That was stupid!
What do you think about this? Now that we are planning to add |
seanlaw
commented
Jun 30, 2026
I guess I would need to consider what the side effect would be if the preallocated were to be automatically resized (i.e., what would be the problem with this?). Currently, I don't see any issues with automatically resizing the preallocated array |
NimaSarajpoor
left a comment
There was a problem hiding this comment.
@seanlaw
I just left one comment. I think it should be ready to merge after discussing/addressing that comment.
Uh oh!
There was an error while loading. Please reload this page.
seanlaw
left a comment
There was a problem hiding this comment.
@NimaSarajpoor I've left some comments for you to consider. Once completed, please let me know as I'd like to go over the code in more detail before you move on (as it's been a while since I've gone over things).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
NimaSarajpoor
commented
Jul 9, 2026
@seanlaw |
seanlaw
left a comment
There was a problem hiding this comment.
@NimaSarajpoor I think everything looks good. Just a few comments for you to consider
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For our future reference: (R)FFT and I(R)FFT are implemented in a way that:
By convention, (R)FFT is scaled by 1 (i.e. no scaling), and I(R)FFT is scaled by Example 1Example 2Let's use pyfftw instead. Example 3Let's use pyfftw instead. However, this time, we will use the thin wrapper "execute" that does Fourier transform only without any scaling. which gives: |
seanlaw
commented
Jul 21, 2026
Should this information be recorded in https://github.com/stumpy-dev/sliding_dot_product/blob/main/docs/Tutorial_FFT_Based_SDP.ipynb instead?? |
YES, it should! Will add the info to the notebook (will update this comment) Update: Created PR stumpy-dev/sliding_dot_product#39 to address this. |
seanlaw
commented
Jul 26, 2026
I think it is good and appears to complete:
If so, then I think it is ready? |
NimaSarajpoor
commented
Jul 27, 2026
Perfect! I will check one last time just in case and then merge. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
NimaSarajpoor
commented
Jul 30, 2026
@seanlaw |
Uh oh!
There was an error while loading. Please reload this page.
This is to address
PR 3described in #1118 (comment). Have copied the corresponding notes below: