Skip to content
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

Five argument mul! #139

Closed
ranocha opened this issue Mar 5, 2020 · 2 comments
Closed

Five argument mul! #139

ranocha opened this issue Mar 5, 2020 · 2 comments

Comments

@ranocha
Copy link
Member

ranocha commented Mar 5, 2020

I couldn't find a 5 argument method of mul! in FFTW.jl for FFTW.rFFTWPlan and its siblings. Would it be reasonable to add such methods? In particular, I would like to be able to do something like

julia> using LinearAlgebra, FFTW

julia> x = Vector(range(0., 1., length=16));

julia> rfft_plan = plan_rfft(x);

julia> y = rfft_plan * x; y .= 1;

julia> mul!(y, rfft_plan, x);

julia> mul!(y, rfft_plan, x, 1.0, 0.5) # this yields a MethodError

Note: I've asked this question on discourse.

@stevengj
Copy link
Member

stevengj commented Mar 5, 2020

FFTW doesn't support this operation, so there is nothing we could implement here that would be faster than just doing the scaling etcetera yourself.

@ranocha
Copy link
Member Author

ranocha commented Mar 5, 2020

Okay, thanks.

@ranocha ranocha closed this as completed Mar 5, 2020
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

No branches or pull requests

2 participants