examples/fft/real-halfcomplex2.rb in gsl-1.15.3 vs examples/fft/real-halfcomplex2.rb in gsl-1.16.0.6
- old
+ new
@@ -10,18 +10,18 @@
end
org = data.clone
rtable = GSL::FFT::RealWavetable.alloc(n)
rwork = GSL::FFT::RealWorkspace.alloc(n)
-
+
data.real_transform!(rtable, rwork)
for i in 11...n do
data[i] = 0.0
end
-
+
hctable = GSL::FFT::HalfComplexWavetable.alloc(n)
-
+
#data.halfcomplex_inverse!(hctable, rwork)
#data.halfcomplex_inverse!()
#data.ifft!
#data.halfcomplex_inverse!(hctable, rwork)
data.ifft!(hctable, rwork)