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

plan_rfft eltype should be Complex #256

Open
dlfivefifty opened this issue Dec 6, 2022 · 0 comments
Open

plan_rfft eltype should be Complex #256

dlfivefifty opened this issue Dec 6, 2022 · 0 comments

Comments

@dlfivefifty
Copy link
Member

This caught me by surprise:

julia> x = randn(5); P = plan_rfft(x);

julia> eltype(P)
Float64

julia> P * x
3-element Vector{ComplexF64}:
 -0.3514539021978911 + 0.0im
 -0.8023047651675712 + 1.243731722698685im
  2.8759555200391196 - 2.679171588261927im

If a "plan" is in some sense analogous to a matrix the eltype should be type of the output, in this case ComplexF64.

@dlfivefifty dlfivefifty changed the title rfft eltype should be Complex plan_rfft eltype should be Complex Dec 6, 2022
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

1 participant