Skip to content

type-flexible FFTs? #34

Open
Open
@milankl

Description

@milankl

I've raised this issue JuliaDSP/FourierTransforms.jl#8 (comment), which is about

_fftfloat(::Type{Float16}) = Float32
_fftfloat(::Type{Complex{T}}) where {T} = Complex{_fftfloat(T)}
_fftfloat(::Type{T}) where {T} = error("type $T not supported")

In theory, FourierTransforms.jl should allow for a type-flexible FFT, i.e. fft(::Array{T,1}) where {T<:AbstractFloat}, but currently it doesn't. Would it be possible to change these lines thanks to the pure-Julia FourierTransforms.jl, which is not limited to Float32/Float64 (as for example FFTW is)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions