| 1 | #include "fftservintf.h"
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 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 | */
|
|---|
| 11 |
|
|---|
| 12 | /* --Methode-- */
|
|---|
| 13 | FFTServerInterface::FFTServerInterface(string info)
|
|---|
| 14 | {
|
|---|
| 15 | _info = info;
|
|---|
| 16 | _fgnorm = true;
|
|---|
| 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 | {
|
|---|
| 27 | throw NotAvailableOperation("FFTServer::FFTForward(TVector...) Unsupported operation !");
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | /* --Methode-- */
|
|---|
| 31 | void FFTServerInterface::FFTBackward(TVector< complex<r_8> > const &, TVector< complex<r_8> > &)
|
|---|
| 32 | {
|
|---|
| 33 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector...) Unsupported operation !");
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | /* --Methode-- */
|
|---|
| 37 | void FFTServerInterface::FFTForward(TVector< r_8 > const &, TVector< complex<r_8> > &)
|
|---|
| 38 | {
|
|---|
| 39 | throw NotAvailableOperation("FFTServer::FFTForward(TVector...) Unsupported operation !");
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | /* --Methode-- */
|
|---|
| 43 | void FFTServerInterface::FFTBackward(TVector< complex<r_8> > const &, TVector< r_8 > &)
|
|---|
| 44 | {
|
|---|
| 45 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector...) Unsupported operation !");
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | /* --Methode-- */
|
|---|
| 49 | void FFTServerInterface::FFTForward(TMatrix< complex<r_8> > const &, TMatrix< complex<r_8> > &)
|
|---|
| 50 | {
|
|---|
| 51 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix...) Unsupported operation !");
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | /* --Methode-- */
|
|---|
| 55 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_8> > const &, TMatrix< complex<r_8> > &)
|
|---|
| 56 | {
|
|---|
| 57 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix...) Unsupported operation !");
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | /* --Methode-- */
|
|---|
| 61 | void FFTServerInterface::FFTForward(TMatrix< r_8 > const &, TMatrix< complex<r_8> > &)
|
|---|
| 62 | {
|
|---|
| 63 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix...) Unsupported operation !");
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | /* --Methode-- */
|
|---|
| 67 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_8> > const &, TMatrix< r_8 > &)
|
|---|
| 68 | {
|
|---|
| 69 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix...) Unsupported operation !");
|
|---|
| 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 | {
|
|---|
| 78 | throw NotAvailableOperation("FFTServer::FFTForward(TVector r_4 ... ) Unsupported operation !");
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 | /* --Methode-- */
|
|---|
| 82 | void FFTServerInterface::FFTBackward(TVector< complex<r_4> > const &, TVector< complex<r_4> > &)
|
|---|
| 83 | {
|
|---|
| 84 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector r_4 ... ) Unsupported operation !");
|
|---|
| 85 | }
|
|---|
| 86 |
|
|---|
| 87 | /* --Methode-- */
|
|---|
| 88 | void FFTServerInterface::FFTForward(TVector< r_4 > const &, TVector< complex<r_4> > &)
|
|---|
| 89 | {
|
|---|
| 90 | throw NotAvailableOperation("FFTServer::FFTForward(TVector r_4 ... ) Unsupported operation !");
|
|---|
| 91 | }
|
|---|
| 92 |
|
|---|
| 93 | /* --Methode-- */
|
|---|
| 94 | void FFTServerInterface::FFTBackward(TVector< complex<r_4> > const &, TVector< r_4 > &)
|
|---|
| 95 | {
|
|---|
| 96 | throw NotAvailableOperation("FFTServer::FFTBackward(TVector r_4 ... ) Unsupported operation !");
|
|---|
| 97 | }
|
|---|
| 98 |
|
|---|
| 99 | /* --Methode-- */
|
|---|
| 100 | void FFTServerInterface::FFTForward(TMatrix< complex<r_4> > const &, TMatrix< complex<r_4> > &)
|
|---|
| 101 | {
|
|---|
| 102 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix r_4 ... ) Unsupported operation !");
|
|---|
| 103 | }
|
|---|
| 104 |
|
|---|
| 105 | /* --Methode-- */
|
|---|
| 106 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_4> > const &, TMatrix< complex<r_4> > &)
|
|---|
| 107 | {
|
|---|
| 108 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix r_4 ... ) Unsupported operation !");
|
|---|
| 109 | }
|
|---|
| 110 |
|
|---|
| 111 | /* --Methode-- */
|
|---|
| 112 | void FFTServerInterface::FFTForward(TMatrix< r_4 > const &, TMatrix< complex<r_4> > &)
|
|---|
| 113 | {
|
|---|
| 114 | throw NotAvailableOperation("FFTServer::FFTForward(TMatrix r_4 ... ) Unsupported operation !");
|
|---|
| 115 | }
|
|---|
| 116 |
|
|---|
| 117 | /* --Methode-- */
|
|---|
| 118 | void FFTServerInterface::FFTBackward(TMatrix< complex<r_4> > const &, TMatrix< r_4 > &)
|
|---|
| 119 | {
|
|---|
| 120 | throw NotAvailableOperation("FFTServer::FFTBackward(TMatrix r_4 ... ) Unsupported operation !");
|
|---|
| 121 | }
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|