-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
DSP - A_mul_B!() broken for fft_plan() ? #15781
Comments
Do Ac = complex(A)
A_mul_B!(O, p, Ac) When you perform an FFT, On the one hand, if you are using |
Closing this as it is part of a general issue with beginners not understanding Improving the error message would require some sort of list of common mistakes. A possible solution is discussed in #7512. The quick solution would be to define methods like function A_mul_B!(::Array{Complex{Float64},3}, ::Base.DFT.FFTW.cFFTWPlan{Complex{Float64},-1,false,3}, ::Array{Float64,3})
error(
""
A_mul_B! is a low level method that does not implicitly convert arguments to Complex.
do the conversion manually
eg:
Ac = complex(A)
A_mul_B!(O, p, Ac)
""")
end but as I understand it, it is not a good idea to define lots of methods that just error with an explanation of why the method should not exist. |
@ivarne @stevengj
And got:
Is there any reason that the same error should persist here? |
@NinjaaCat, you are still passing |
@stevengj Entirely my bad. Thank you! |
With function types, it's now possible to rewrite the large monolithic |
Hi,
I'm new to Julia, and currently using the DSP package to do fft. Perhaps I'm not following the syntax to call fft_plan and A_mul_B! correctly?
I should specify I installed the newest version of everything as of 1 week ago, and the output is generated in Jupyter notebook.
The text was updated successfully, but these errors were encountered: