From cd7912313dc2477283de767029462d7d0e6ee8ab Mon Sep 17 00:00:00 2001 From: Mark Borgerding Date: Fri, 22 Jan 2010 00:35:03 -0500 Subject: changed FFT function vector and Matrix args to pointer as Benoit suggested implemented 2D Complex FFT for FFTW impl --- unsupported/test/FFT.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'unsupported/test/FFT.cpp') diff --git a/unsupported/test/FFT.cpp b/unsupported/test/FFT.cpp index 056be2ef3..a2f1d9201 100644 --- a/unsupported/test/FFT.cpp +++ b/unsupported/test/FFT.cpp @@ -106,29 +106,29 @@ void test_scalar_generic(int nfft) // make sure it DOESN'T give the right full spectrum answer // if we've asked for half-spectrum fft.SetFlag(fft.HalfSpectrum ); - fft.fwd( outbuf,inbuf); + fft.fwd( &outbuf,inbuf); VERIFY(outbuf.size() == (size_t)( (nfft>>1)+1) ); VERIFY( fft_rmse(outbuf,inbuf) < test_precision() );// gross check fft.ClearFlag(fft.HalfSpectrum ); - fft.fwd( outbuf,inbuf); + fft.fwd( &outbuf,inbuf); VERIFY( fft_rmse(outbuf,inbuf) < test_precision() );// gross check ScalarVector buf3; - fft.inv( buf3 , outbuf); + fft.inv( &buf3 , outbuf); VERIFY( dif_rmse(inbuf,buf3) < test_precision() );// gross check // verify that the Unscaled flag takes effect ComplexVector buf4; fft.SetFlag(fft.Unscaled); - fft.inv( buf4 , outbuf); + fft.inv( &buf4 , outbuf); for (int k=0;k() );// gross check // verify that ClearFlag works fft.ClearFlag(fft.Unscaled); - fft.inv( buf3 , outbuf); + fft.inv( &buf3 , outbuf); VERIFY( dif_rmse(inbuf,buf3) < test_precision() );// gross check } @@ -152,25 +152,25 @@ void test_complex_generic(int nfft) ComplexVector buf3; for (int k=0;k() );// gross check - fft.inv( buf3 , outbuf); + fft.inv( &buf3 , outbuf); VERIFY( dif_rmse(inbuf,buf3) < test_precision() );// gross check // verify that the Unscaled flag takes effect ComplexVector buf4; fft.SetFlag(fft.Unscaled); - fft.inv( buf4 , outbuf); + fft.inv( &buf4 , outbuf); for (int k=0;k() );// gross check // verify that ClearFlag works fft.ClearFlag(fft.Unscaled); - fft.inv( buf3 , outbuf); + fft.inv( &buf3 , outbuf); VERIFY( dif_rmse(inbuf,buf3) < test_precision() );// gross check } -- cgit v1.2.3