Fourier library: Operations in the Fourier domain

◆ spectrum() [2/2]

DRFFTWAFFArrayEngine::TAspectrum fourier::fft::DRFFTWAFFArrayEngine::spectrum ( const unsigned int &  i) const

return a reference to the Fourier coefficients of series i

Definition at line 321 of file fftwaffar.cc.

References FOURIER_assert, Mspectrumarray, and nseries().

322  {
323  FOURIER_assert(((i>=0) && (i<this->nseries())),
324  "ERROR: signal index is out of range");
325  return(aff::slice(Mspectrumarray)()(i));
326  } // DRFFTWAFFArrayEngine::TAspectrum DRFFTWAFFArrayEngine::spectrum(i) const
#define FOURIER_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:141
unsigned int nseries() const
return the number of series in the arrays
Definition: fftwaffar.cc:301
Here is the call graph for this function: