1 import ( "complex.lib" ) ;
2 import ( "fft.lib.dsp" ) ;
5 (1) => _, 1 : vectorize ;
6 (m) => concats(m - 1), ( _, 1 : vectorize) : #;
9 //subvect_even(n) = par(i, (n/2), (_, (i, 2 : *) : [])) : concats(n/2);
10 //subvect_odd(n) = par(i, (n/2), (_, (i, 2 : * : _, 1 : +) : [])) : concats(n/2);
13 (2) => [0] : vectorize(1);
14 (n) => evens(n-2) # ((_, (n-2) : []) : vectorize(1));
18 (2) => [1] : vectorize(1);
19 (n) => odds(n - 2) # ((_, (n-1) : []) : vectorize(1));
22 subvect_even(n) = _ <: evens(n);
23 subvect_odd(n) = _ <: odds(n);
25 eo(n) = _ <: subvect_even(n), subvect_odd(n);
27 output = serialize, serialize : vectorize(1), vectorize(1) : #;
29 //process = (1,2,3,4,5,6,7,8) : evens(8);
31 process = _ : vectorize(8) : eo(8) : output;