Fourier library: Operations in the Fourier domain

◆ checkconsistency()

void fourier::fft::DRFFTWAFFArrayEngine::checkconsistency ( )
private

Definition at line 138 of file fftwaffar.cc.

References FOURIER_assert, Mseriesarray, Mspectrumarray, and ncoeff().

Referenced by DRFFTWAFFArrayEngine().

139  {
142  "ERROR: sample size inconsistent");
143  FOURIER_assert(Mseriesarray.size(1)==Mspectrumarray.size(1),
144  "ERROR: inconsistent number of signals");
145  FOURIER_assert(((Mseriesarray.size(2)==1) && (Mspectrumarray.size(2)==1)),
146  "ERROR: two-dimensional arrays only");
147  FOURIER_assert(((Mseriesarray.size(3)==1) && (Mspectrumarray.size(3)==1)),
148  "ERROR: two-dimensional arrays only");
149  } // void DRFFTWAFFArrayEngine::checkconsistency()
#define FOURIER_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:141
static unsigned int ncoeff(const unsigned int &nsamples)
return number of coefficients for given number of samples
Definition: fftwaffar.h:122
Here is the call graph for this function:
Here is the caller graph for this function: