Changeset 538 in Sophya


Ignore:
Timestamp:
Nov 3, 1999, 3:30:40 PM (26 years ago)
Author:
ansari
Message:

From Alex (compte pixel) A.Kim/Reza 3/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/fftserver.cc

    r515 r538  
    33
    44extern "C" {
    5   int rffti_(int *n, float *wsave);
     5  int rffti_(int *n, float *wsave);             //fftpack functions
    66  int rfftf_(int *n, float *r__, float *wsave);
    77  int rfftb_(int *n, float *r__, float *wsave);
     
    1919FFTServer::FFTServer()
    2020{
    21 sz_rfft = 0;
    22 ws_rfft = NULL;
    23 sz_cfft = 0;
    24 ws_cfft = NULL;
    25 sz_cdfft = 0;
    26 ws_cdfft = NULL;
     21  sz_rfft = 0;     //the working array and its size for the different
     22  ws_rfft = NULL;  //possible numerical types
     23  sz_cfft = 0;
     24  ws_cfft = NULL;
     25  sz_cdfft = 0;
     26  ws_cdfft = NULL;
    2727}
    2828
     
    3636void FFTServer::checkint_rfft(int l)
    3737{
    38   if (sz_rfft == l) return;
    39 
    40   if (ws_rfft) delete[] ws_rfft;
     38  if (sz_rfft == l) return;       //checkint functions check and reallocate
     39                                  //memory for the work arrays when performing
     40  if (ws_rfft) delete[] ws_rfft;  //a transform
    4141  sz_rfft = l;
    4242  ws_rfft = new float[2*l+15];
     
    7373  cdffti_(&l, ws_cdfft);
    7474}
     75
     76/* In general forward transformations are resorted since fftpack functions
     77   return inverse transformations */
    7578
    7679void FFTServer::fftf(int l, float* inout)
Note: See TracChangeset for help on using the changeset viewer.