Changeset 1405 in Sophya for trunk/SophyaLib/NTools/fftpserver.cc


Ignore:
Timestamp:
Feb 15, 2001, 6:58:16 PM (25 years ago)
Author:
ansari
Message:

Ajout documentation - Reza 15/2/2001

File:
1 edited

Legend:

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

    r1402 r1405  
    1515necessarily correspond with the equivalent fftpack function.  For example,
    1616fftpack "forward" transformations are in fact inverse fourier transformations.
    17 Otherwise, the output is in the fftpack format.
    18 
    1917
    2018Due to the way that fftpack manages
     
    2321of differing length, it may be more efficient to create an fftserver object
    2422for 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
    2538*/
    2639
Note: See TracChangeset for help on using the changeset viewer.