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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?