improve error message for plan_ifft!(v::Vector{T<:Real})
- Dominant language
- Julia
- Stars
- 300
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
From https://github.com/JuliaLang/julia/issues/19087
>
> This confused me for a second:
>
> ``` julia
> julia> plan_ifft!(rand(10))
> ERROR: MethodError: `plan_bfft!` has no method matching plan_bfft!(::Array{Float64,1}, ::UnitRange{Int64})
> Closest candidates are:
> plan_bfft!(::Any, ::Any, ::Any)
> plan_bfft!(::Any, ::Any, ::Any, ::Any)
> plan_bfft!{T<:Union{Complex{Float32},Complex{Float64}},N}(::Union{DenseArray{T<:Union{Complex{Float32},Complex{Float64}},N},SubArray{T<:Union{Complex{Float32},Complex{Float64}},N,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Int64,Range{Int64}}}},LD}}, ::Any)
> ...
> in plan_ifft! at dft.jl:277
> in plan_ifft! at dft.jl:38
> ```
>
> I think `plan_ifft!(v::Vector{T<:Real})` should be overriden to give an error message saying that the input has to be complex.
>
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.