Skip to content

Fast Fourier transform on hexagonal grids using Birdsong and Rummelt's algorithm

License

Notifications You must be signed in to change notification settings

gwater/HexFFT.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexFFT

This package implements Birdsong and Rummelt's 2016 algorithm for fast Fourier transforms on hexagonal lattices.

The module HexFFT currently exports four functions: hfft2() and ihfft2() which compute the FFT and its inverse, respectively. Alternatively, you can wrap your data in the OffsetHexData type and use the standard fft() and ifft() methods. Note that transforms along individual dimensions (i.e. fft(data, dim)) are not implemented.

The current implementation is ca. 10 times slower than Base.fft() for comparable rectangular grids. However significant optimization should be possible by preallocating and reusing temporary arrays.

About

Fast Fourier transform on hexagonal grids using Birdsong and Rummelt's algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages