go-fftw

Go bindings for fftw3

  • Owner: runningwild/go-fftw
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Go bindings for FFTW v3.2.2
Maintained by Jonathan Wills: runningwild@gmail.com
Feel free to email me patches, suggestions or bugs.

FFTW homepage: http://www.fftw.org/
Documentation for the latest version: http://www.fftw.org/fftw3_doc/

These bindings are incomplete, but should include enough functionality that you can do whatever transforms you need (perhaps not as easily as you would like, for now). The function definitions do not mirror exactly what is written in the docs. For example, passing arrays does not require passing the size of the arrays.

Usage:
Here is an example of doing a simple DFT with these bindings

data := fftw.NewArray(64) // Similar to calling make([]complex128, 64)
forward := fftw.NewPlan(data, data, fftw.Forward, fftw.Estimate)
backward := fftw.NewPlan(data, data, fftw.Backward, fftw.Estimate)
defer forward.Destroy()  // Make sure to clean things up, since there are allocations happening
defer backward.Destroy() // in c-land somewhere.
// ... fill in data with something interesting
forward.Execute() // Transforms data, in place, to frequency domain
// ... do something interesting with data
backward.Execute() // Returns data, in place, to time domain

Installation:
When installing fftw you must compile it as a shared library:

./configure --enable-shared
make
make install

Once installed properly, these bindings can be installed like so:

go get github.com/runningwild/go-fftw

Main metrics

Overview
Name With Ownerrunningwild/go-fftw
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Other
所有者活动
Created At2011-01-23 21:44:39
Pushed At2021-07-14 02:21:08
Last Commit At2017-05-16 10:08:04
Release Count1
Last Release Namev1.0.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count41
Watchers Count5
Fork Count10
Commits Count42
Has Issues Enabled
Issues Count5
Issue Open Count1
Pull Requests Count4
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private