-
Notifications
You must be signed in to change notification settings - Fork 55
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
I didn't ask for plan_bfft, but got MethodError: no method matching plan_bfft(::Vector{Number}, ::UnitRange{Int64}) #244
Comments
I cross posted this to the Julia Discourse, and user DNF identified that the problem has to do with type instability in the |
Ah, but you do! https://github.com/JuliaMath/AbstractFFTs.jl/blob/master/src/definitions.jl#L262-L263 If you look at the full stack trace (topmost frames shown below), you'll see that
|
Type stability is relevant because type inference determined that a "good enough" element type for the array would be |
I'm going to close this issue since there doesn't seem to be a problem with FFTW itself and Discourse is the place to ask usage questions. |
While coding an iterative FFT function, I came upon a strange bug that depends on the arguments to the function in a complicated way. I've managed to reduce the problematic code to the following:
The various parameters and the auxiliary function
unitize
are, unfortunately, necessary for this demonstration, as slight tweaks to the function eliminates the error. The final parameter toproblematic
determines the number of iterations, and changing it slightly affects whether or not an error is thrown. With slightly different inputsy0
,y1
,quad
, etc. the exact number of iterations at which the error shows up will change also. Under some conditions, I also find that the number of iterations required for an error differs between the REPL and a Jupyter notebook.I also find it strange that the error mentions
plan_bfft
, as I do not invoke that at all. Is the compiler automatically planning an FFT when it sees many FFTs in a loop?I'm using Julia v1.7.2 and FFTW v1.4.6.
The text was updated successfully, but these errors were encountered: