Giter VIP home page Giter VIP logo

genericfft.jl's Introduction

GenericFFT.jl

Build Status codecov

GenericFFT.jl implements a Fast Fourier Transform for generic floating point number types.

The transforms provided have the right computational complexity. However, for the time being, the implementations are crude and far from optimal. Please consider contributing improvements to the package and filing issues for missing functionality.

Installation

Installation is straightforward:

pkg> add GenericFFT

julia> using GenericFFT

Usage for high-precision FFTs

The main reason for using GenericFFT is high-precision calculations. For example:

julia> using GenericFFT

julia> fft(rand(Complex{BigFloat}, 2))
2-element Vector{Complex{BigFloat}}:
 0.8071607526060331187983248443648586158893950448440777116281652091029932491471374 + 1.058204007570364569492040922226041865648762106924785198005758849420721686004251im
 0.3195699335469630499276014344115859560577992018210584550701583748039853943955188 + 0.196737316420669631800810230623687615407691727320510522950346182385847637522683im

Other packages provide high-precision floating point numbers, including QuadMath.jl and DoubleFloats.jl.

julia> using GenericFFT, DoubleFloats

julia> fft(rand(Double64, 2))
2-element Vector{Complex{Double64}}:
 0.4026739024263829 + 0.0im
 0.3969515892883767 + 0.0im

History

The code in this package was developed in the FastTransforms.jl package by Mikael Slevinsky. The code was moved to a separate package in July 2022 from this file.

genericfft.jl's People

Contributors

daanhb avatar mikaelslevinsky avatar cgeoga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.