repo.or.cz
/
Math-GSL.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding basic FFT example
[Math-GSL.git]
/
examples
/
fft
/
forward_real
blob
25f50d733129626ce6d605a9a5d6e1a4ce368601
1
#!/usr/bin/perl -w
2
3
use
strict
;
4
use
Math
::
GSL
::
FFT qw
/:all/
;
5
use
Math
::
GSL
::
Errno qw
/:all/
;
6
use
Data
::
Dumper
;
7
8
my
$data
= [ (
0
)
x
5
, (
1
)
x
22
, (
0
)
x
5
];
9
my
(
$status
,
$fft
) =
gsl_fft_real_radix2_transform
(
$data
,
1
,
32
);
10
print
Dumper
$fft
;
11