go-fftw

Go bindings for fftw3

  • 所有者: runningwild/go-fftw
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者runningwild/go-fftw
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证Other
所有者活动
创建于2011-01-23 21:44:39
推送于2021-07-14 02:21:08
最后一次提交2017-05-16 10:08:04
发布数1
最新版本名称v1.0.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数41
关注者数5
派生数10
提交数42
已启用问题?
问题数5
打开的问题数1
拉请求数4
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?