【文件属性】:
文件名称:DFT的matlab源代码-fftw:FFTW库提供的用于一维全和半复数DFT的Go包装器
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-26 04:04:01
系统开源
DFT的matlab源代码快速傅立叶变换
该软件包是FFTW库提供的一维完整和半复杂DFT的包装。
当心,此程序包仍在进行一些繁重的开发,并且接口可能会发生变化。
例子
package
main
import
(
"fmt"
"github.com/bemasher/fftw"
)
func
main
()
{
dft
:=
fftw
.
NewDFT1D
(
8
,
fftw
.
Forward
,
fftw
.
OutOfPlace
,
fftw
.
Measure
)
defer
dft
.
Close
()
//
Modifying
the
location
of
the
input
or
output
arrays
will
cause
FFTW
to
//
fail.
Instead,
copy
data
into
and
out
of
arrays.
copy
(
dft
.
In
,
[]
complex128
{
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
})
dft
.
Execute
()
fmt
.
Println
(
dft
【文件预览】:
fftw-master
----.gitignore(10B)
----.travis.yml(126B)
----docs.go(107B)
----README.md(3KB)
----fftw3.h(18KB)
----fftw.go(4KB)
----fftw_test.go(7KB)
----constants.go(2KB)