Brief description of class still missing. More...
#include <DFFTPackCache.h>
Public Member Functions | |
| DFFTPackCache (DFFTPackKey *key) | |
| virtual void | init () |
| double * | wsave () const |
| ~DFFTPackCache () | |
Static Public Member Functions | |
| static const DFFTPackCache * | begin (int nSamples, DFFTPackKey::Number number) |
Brief description of class still missing.
Full description of class still missing
Description of constructor still missing
: AbstractNumericalCache(key) { _wsave=0; }
Description of destructor still missing
{
delete [] _wsave;
}
| const DFFTPackCache * GeopsyCore::DFFTPackCache::begin | ( | int | nSamples, |
| DFFTPackKey::Number | number | ||
| ) | [inline, static] |
Referenced by GeopsyCore::DFFTPack::backward(), GeopsyCore::DFFTPack::forward(), GeopsyCore::DFFTPack::manyBackward(), and GeopsyCore::DFFTPack::manyForward().
{
return static_cast<const DFFTPackCache *>(
AbstractNumericalCache::begin(new DFFTPackKey(nSamples, number) ));
}
| void GeopsyCore::DFFTPackCache::init | ( | ) | [virtual] |
Implements QGpCoreTools::AbstractNumericalCache.
References GeopsyCore::cffti1_(), GeopsyCore::DFFTPackKey::Complex, QGpCoreTools::AbstractNumericalCache::key(), GeopsyCore::DFFTPackKey::nSamples(), GeopsyCore::DFFTPackKey::number(), GeopsyCore::DFFTPackKey::Real, and GeopsyCore::rffti1_().
{
const DFFTPackKey& mKey=static_cast<const DFFTPackKey&>(key());
long n=mKey.nSamples();
switch(mKey.number()) {
case DFFTPackKey::Real:
_wsave=new double[n+15];
rffti1_(&n, _wsave, _wsave+n);
break;
case DFFTPackKey::Complex:
_wsave=new double[2*n+15];
cffti1_(&n, _wsave, _wsave+2*n);
break;
}
}
| double* GeopsyCore::DFFTPackCache::wsave | ( | ) | const [inline] |
Referenced by GeopsyCore::DFFTPack::backward(), GeopsyCore::DFFTPack::forward(), GeopsyCore::DFFTPack::manyBackward(), and GeopsyCore::DFFTPack::manyForward().
{return _wsave;}