Changeset 1405 in Sophya for trunk/SophyaLib/NTools/fftpserver.cc
- Timestamp:
- Feb 15, 2001, 6:58:16 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/fftpserver.cc
r1402 r1405 15 15 necessarily correspond with the equivalent fftpack function. For example, 16 16 fftpack "forward" transformations are in fact inverse fourier transformations. 17 Otherwise, the output is in the fftpack format.18 19 17 20 18 Due to the way that fftpack manages … … 23 21 of differing length, it may be more efficient to create an fftserver object 24 22 for each length. 23 24 \code 25 #include "fftpserver.h" 26 // ... 27 TVector<r_8> in(32); 28 TVector< complex<r_8> > out; 29 in = RandomSequence(); 30 FFTPackServer ffts; 31 ffts.setNormalize(true); // To have normalized transforms 32 cout << " FFTServer info string= " << ffts.getInfo() << endl; 33 cout << "in= " << in << endl; 34 cout << " Calling ffts.FFTForward(in, out) : " << endl; 35 ffts.FFTForward(in, out); 36 cout << "out= " << out << endl; 37 \endcode 25 38 */ 26 39
Note:
See TracChangeset
for help on using the changeset viewer.