All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions
GeopsyCore::DFFTPackCache Class Reference

Brief description of class still missing. More...

#include <DFFTPackCache.h>

Inheritance diagram for GeopsyCore::DFFTPackCache:
QGpCoreTools::AbstractNumericalCache

List of all members.

Public Member Functions

 DFFTPackCache (DFFTPackKey *key)
virtual void init ()
double * wsave () const
 ~DFFTPackCache ()

Static Public Member Functions

static const DFFTPackCachebegin (int nSamples, DFFTPackKey::Number number)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

    : AbstractNumericalCache(key)
{
  _wsave=0;
}

Description of destructor still missing

{
  delete [] _wsave;
}

Member Function Documentation

const DFFTPackCache * GeopsyCore::DFFTPackCache::begin ( int  nSamples,
DFFTPackKey::Number  number 
) [inline, static]
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]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines