Changeset 538 in Sophya
- Timestamp:
- Nov 3, 1999, 3:30:40 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/fftserver.cc
r515 r538 3 3 4 4 extern "C" { 5 int rffti_(int *n, float *wsave); 5 int rffti_(int *n, float *wsave); //fftpack functions 6 6 int rfftf_(int *n, float *r__, float *wsave); 7 7 int rfftb_(int *n, float *r__, float *wsave); … … 19 19 FFTServer::FFTServer() 20 20 { 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; 27 27 } 28 28 … … 36 36 void FFTServer::checkint_rfft(int l) 37 37 { 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 41 41 sz_rfft = l; 42 42 ws_rfft = new float[2*l+15]; … … 73 73 cdffti_(&l, ws_cdfft); 74 74 } 75 76 /* In general forward transformations are resorted since fftpack functions 77 return inverse transformations */ 75 78 76 79 void FFTServer::fftf(int l, float* inout)
Note:
See TracChangeset
for help on using the changeset viewer.