aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test
diff options
context:
space:
mode:
authorGravatar Mark Borgerding <mark@borgerding.net>2010-01-22 22:52:13 -0500
committerGravatar Mark Borgerding <mark@borgerding.net>2010-01-22 22:52:13 -0500
commit1d342e135c0385572ec715b1209049355f817b9f (patch)
treed96c64fa61b2e19bb02c7eb96a3cbb765433e486 /unsupported/test
parent141c746fc71b3f615378c5dc01cef2582682e3bd (diff)
changed destination argument to reference
Diffstat (limited to 'unsupported/test')
-rw-r--r--unsupported/test/FFT.cpp18
-rw-r--r--unsupported/test/FFTW.cpp12
2 files changed, 15 insertions, 15 deletions
diff --git a/unsupported/test/FFT.cpp b/unsupported/test/FFT.cpp
index a2f1d9201..056be2ef3 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<T>() );// gross check
fft.ClearFlag(fft.HalfSpectrum );
- fft.fwd( &outbuf,inbuf);
+ fft.fwd( outbuf,inbuf);
VERIFY( fft_rmse(outbuf,inbuf) < test_precision<T>() );// gross check
ScalarVector buf3;
- fft.inv( &buf3 , outbuf);
+ fft.inv( buf3 , outbuf);
VERIFY( dif_rmse(inbuf,buf3) < test_precision<T>() );// 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<nfft;++k)
buf4[k] *= T(1./nfft);
VERIFY( dif_rmse(inbuf,buf4) < test_precision<T>() );// 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<T>() );// gross check
}
@@ -152,25 +152,25 @@ void test_complex_generic(int nfft)
ComplexVector buf3;
for (int k=0;k<nfft;++k)
inbuf[k]= Complex( (T)(rand()/(double)RAND_MAX - .5), (T)(rand()/(double)RAND_MAX - .5) );
- fft.fwd( &outbuf , inbuf);
+ fft.fwd( outbuf , inbuf);
VERIFY( fft_rmse(outbuf,inbuf) < test_precision<T>() );// gross check
- fft.inv( &buf3 , outbuf);
+ fft.inv( buf3 , outbuf);
VERIFY( dif_rmse(inbuf,buf3) < test_precision<T>() );// 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<nfft;++k)
buf4[k] *= T(1./nfft);
VERIFY( dif_rmse(inbuf,buf4) < test_precision<T>() );// 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<T>() );// gross check
}
diff --git a/unsupported/test/FFTW.cpp b/unsupported/test/FFTW.cpp
index 47ef5de97..6f1f2ec44 100644
--- a/unsupported/test/FFTW.cpp
+++ b/unsupported/test/FFTW.cpp
@@ -91,11 +91,11 @@ void test_scalar(int nfft)
vector<Complex> outbuf;
for (int k=0;k<nfft;++k)
inbuf[k]= (T)(rand()/(double)RAND_MAX - .5);
- fft.fwd( &outbuf,inbuf);
+ fft.fwd( outbuf,inbuf);
VERIFY( fft_rmse(outbuf,inbuf) < test_precision<T>() );// gross check
vector<Scalar> buf3;
- fft.inv( &buf3 , outbuf);
+ fft.inv( buf3 , outbuf);
VERIFY( dif_rmse(inbuf,buf3) < test_precision<T>() );// gross check
}
@@ -111,11 +111,11 @@ void test_complex(int nfft)
vector<Complex> buf3;
for (int k=0;k<nfft;++k)
inbuf[k]= RandomCpx<T>();
- fft.fwd( &outbuf , inbuf);
+ fft.fwd( outbuf , inbuf);
VERIFY( fft_rmse(outbuf,inbuf) < test_precision<T>() );// gross check
- fft.inv( &buf3 , outbuf);
+ fft.inv( buf3 , outbuf);
VERIFY( dif_rmse(inbuf,buf3) < test_precision<T>() );// gross check
}
@@ -132,13 +132,13 @@ void test_complex2d()
for (int k=0;k<ncols;k++) {
Eigen::Matrix<Complex,nrows,1> tmpOut;
- fft.fwd( &tmpOut,src.col(k) );
+ fft.fwd( tmpOut,src.col(k) );
dst2.col(k) = tmpOut;
}
for (int k=0;k<nrows;k++) {
Eigen::Matrix<Complex,1,ncols> tmpOut;
- fft.fwd( &tmpOut, dst2.row(k) );
+ fft.fwd( tmpOut, dst2.row(k) );
dst2.row(k) = tmpOut;
}