[710] | 1 | #include "fftservintf.h"
|
---|
| 2 |
|
---|
| 3 |
|
---|
[1371] | 4 | /*!
|
---|
| 5 | \class SOPHYA::FFTServerInterface
|
---|
| 6 | \ingroup NTools
|
---|
| 7 | Defines the interface for FFT (Fast Fourier Transform) operations.
|
---|
| 8 | Warning: The interface is likely to be changed and simplified,
|
---|
| 9 | using only SOPHYA::TArray Objects.
|
---|
| 10 | */
|
---|
[710] | 11 |
|
---|
| 12 | /* --Methode-- */
|
---|
| 13 | FFTServerInterface::FFTServerInterface(string info)
|
---|
| 14 | {
|
---|
| 15 | _info = info;
|
---|
[717] | 16 | _fgnorm = true;
|
---|
[710] | 17 | }
|
---|
| 18 |
|
---|
| 19 | /* --Methode-- */
|
---|
| 20 | FFTServerInterface::~FFTServerInterface()
|
---|
| 21 | {
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | /* --Methode-- */
|
---|
| 25 | void FFTServerInterface::FFTForward(TVector< complex<r_8> > const &, TVector< complex<r_8> > &)
|
---|
| 26 | {
|
---|
[750] | 27 | throw NotAvailableOperation("FFTServer::FFTForward(TVector...) Unsupported operation !");
|
---|
[710] | 28 | }
|
---|
| 29 |
|
---|
| 30 | /* --Methode-- */
|
---|
| 31 | void FFTServerInterface::FFTBackward(TVector< complex<r_8> > const &, TVector< complex<r_8> > &)
|
---|
| 32 | {
|
---|
[750] | 33 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector...) Unsupported operation !");
|
---|
[710] | 34 | }
|
---|
| 35 |
|
---|
| 36 | /* --Methode-- */
|
---|
| 37 | void FFTServerInterface::FFTForward(TVector< r_8 > const &, TVector< complex<r_8> > &)
|
---|
| 38 | {
|
---|
[750] | 39 | throw NotAvailableOperation("FFTServer::FFTForward(TVector...) Unsupported operation !");
|
---|
[710] | 40 | }
|
---|
| 41 |
|
---|
| 42 | /* --Methode-- */
|
---|
| 43 | void FFTServerInterface::FFTBackward(TVector< complex<r_8> > const &, TVector< r_8 > &)
|
---|
| 44 | {
|
---|
[750] | 45 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector...) Unsupported operation !");
|
---|
[710] | 46 | }
|
---|
| 47 |
|
---|
| 48 | /* --Methode-- */
|
---|
| 49 | void FFTServerInterface::FFTForward(TMatrix< complex<r_8> > const &, TMatrix< complex<r_8> > &)
|
---|
| 50 | {
|
---|
[750] | 51 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix...) Unsupported operation !");
|
---|
[710] | 52 | }
|
---|
| 53 |
|
---|
| 54 | /* --Methode-- */
|
---|
| 55 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_8> > const &, TMatrix< complex<r_8> > &)
|
---|
| 56 | {
|
---|
[750] | 57 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix...) Unsupported operation !");
|
---|
[710] | 58 | }
|
---|
| 59 |
|
---|
| 60 | /* --Methode-- */
|
---|
| 61 | void FFTServerInterface::FFTForward(TMatrix< r_8 > const &, TMatrix< complex<r_8> > &)
|
---|
| 62 | {
|
---|
[750] | 63 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix...) Unsupported operation !");
|
---|
[710] | 64 | }
|
---|
| 65 |
|
---|
| 66 | /* --Methode-- */
|
---|
| 67 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_8> > const &, TMatrix< r_8 > &)
|
---|
| 68 | {
|
---|
[750] | 69 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix...) Unsupported operation !");
|
---|
[710] | 70 | }
|
---|
| 71 |
|
---|
| 72 |
|
---|
| 73 | // ----------------- Transforme pour les float -------------------
|
---|
| 74 |
|
---|
| 75 | /* --Methode-- */
|
---|
| 76 | void FFTServerInterface::FFTForward(TVector< complex<r_4> > const &, TVector< complex<r_4> > &)
|
---|
| 77 | {
|
---|
[750] | 78 | throw NotAvailableOperation("FFTServer::FFTForward(TVector r_4 ... ) Unsupported operation !");
|
---|
[710] | 79 | }
|
---|
| 80 |
|
---|
| 81 | /* --Methode-- */
|
---|
| 82 | void FFTServerInterface::FFTBackward(TVector< complex<r_4> > const &, TVector< complex<r_4> > &)
|
---|
| 83 | {
|
---|
[750] | 84 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector r_4 ... ) Unsupported operation !");
|
---|
[710] | 85 | }
|
---|
| 86 |
|
---|
| 87 | /* --Methode-- */
|
---|
| 88 | void FFTServerInterface::FFTForward(TVector< r_4 > const &, TVector< complex<r_4> > &)
|
---|
| 89 | {
|
---|
[750] | 90 | throw NotAvailableOperation("FFTServer::FFTForward(TVector r_4 ... ) Unsupported operation !");
|
---|
[710] | 91 | }
|
---|
| 92 |
|
---|
| 93 | /* --Methode-- */
|
---|
| 94 | void FFTServerInterface::FFTBackward(TVector< complex<r_4> > const &, TVector< r_4 > &)
|
---|
| 95 | {
|
---|
[750] | 96 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector r_4 ... ) Unsupported operation !");
|
---|
[710] | 97 | }
|
---|
| 98 |
|
---|
| 99 | /* --Methode-- */
|
---|
| 100 | void FFTServerInterface::FFTForward(TMatrix< complex<r_4> > const &, TMatrix< complex<r_4> > &)
|
---|
| 101 | {
|
---|
[750] | 102 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix r_4 ... ) Unsupported operation !");
|
---|
[710] | 103 | }
|
---|
| 104 |
|
---|
| 105 | /* --Methode-- */
|
---|
| 106 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_4> > const &, TMatrix< complex<r_4> > &)
|
---|
| 107 | {
|
---|
[750] | 108 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix r_4 ... ) Unsupported operation !");
|
---|
[710] | 109 | }
|
---|
| 110 |
|
---|
| 111 | /* --Methode-- */
|
---|
| 112 | void FFTServerInterface::FFTForward(TMatrix< r_4 > const &, TMatrix< complex<r_4> > &)
|
---|
| 113 | {
|
---|
[750] | 114 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix r_4 ... ) Unsupported operation !");
|
---|
[710] | 115 | }
|
---|
| 116 |
|
---|
| 117 | /* --Methode-- */
|
---|
| 118 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_4> > const &, TMatrix< r_4 > &)
|
---|
| 119 | {
|
---|
[750] | 120 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix r_4 ... ) Unsupported operation !");
|
---|
[710] | 121 | }
|
---|
| 122 |
|
---|
| 123 |
|
---|