Skip to content

type-flexible fft? #8

@milankl

Description

@milankl

Thanks for the effort towards a pure-Julia fft package. I'm very interested in type-flexible fft, which I thought would be supported with such an fft implementation. However, Float16 is promoted to Float32

julia> x = rand(Float16,4);
julia> FourierTransforms.fft(x)
4-element Array{Complex{Float32},1}:
  2.2734375f0 + 0.0f0im       
 -0.6142578f0 + 0.38378906f0im
 -0.5371094f0 + 0.0f0im       
 -0.6142578f0 - 0.38378906f0im

and arbitrary number formats are not supported

julia> using SoftPosit
julia> x = Posit16.(rand(4))
4-element Array{Posit16,1}:
     Posit16(0x3e4e)
     Posit16(0x0eb6)
     Posit16(0x10d8)    
     Posit16(0x308f)    
julia> FourierTransforms.fft(x)
ERROR: type Posit16 not supported
Stacktrace: ...

Can I contribute somehow to make this package fully type-flexible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions