author | Lesley De Cruz <lesley.decruz+git@gmail.com> | 2012年03月04日 00:46:27 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年03月04日 21:41:31 +0100 |
commit | 750b1a5619b6fc5bcf4e7af84896a8eaf01589d0 (patch) | |
tree | 1433a491abf52498e6926822af72d18030c8f5dd /tests/fft.lua | |
parent | 9c0c6b43eccbb17963a49b74610badcfac5c7445 (diff) | |
download | gsl-shell-auto-test.tar.gz |
-rw-r--r-- | tests/fft.lua | 5 |
diff --git a/tests/fft.lua b/tests/fft.lua index 46672196..880ebe94 100644 --- a/tests/fft.lua +++ b/tests/fft.lua @@ -1,13 +1,8 @@ use'num' local t = {} - local y = function(n) return matrix.new(n, 1, |i| i < n/3 and 0 or (i < 2*n/3 and 1 or 0)) end -local v=1 -local in_place=1 -local hc=1 - t.fft = function(test) test{fft(y(64))} end t.fft_id = function(test) test{tostring(fftinv(fft(y(1024))))==tostring(y(1024)) } end return t |