#include <fftw.h>
Implements FFT functions for Armadillo types. For more info see fftw.org
- Examples:
- fftw_loop.cpp, fftw_wisdom.cpp, and image.cpp.
Definition at line 25 of file fftw.h.
◆ FFTW() [1/2]
sp::FFTW::FFTW |
( |
unsigned int |
_N, |
|
|
int |
_alg = FFTW_ESTIMATE |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
_N | FFT length |
_alg | FFTW algorithm selection |
Definition at line 44 of file fftw.h.
◆ FFTW() [2/2]
sp::FFTW::FFTW |
( |
unsigned int |
_R, |
|
|
unsigned int |
_C, |
|
|
int |
_alg |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
_R | FFT Nr of rows |
_C | FFT Nr of cols |
_alg | FFTW algorithm selection |
Definition at line 63 of file fftw.h.
◆ ~FFTW()
Destructor.
Definition at line 79 of file fftw.h.
◆ export_wisdom_fft()
void sp::FFTW::export_wisdom_fft |
( |
const std::string |
fname | ) |
|
|
inline |
Export real FFT wisdom to file.
- Parameters
-
Definition at line 355 of file fftw.h.
References err_handler.
◆ export_wisdom_fft_cx()
void sp::FFTW::export_wisdom_fft_cx |
( |
const std::string |
fname | ) |
|
|
inline |
Export complex FFT wisdom to file.
- Parameters
-
Definition at line 440 of file fftw.h.
References err_handler.
◆ export_wisdom_ifft()
void sp::FFTW::export_wisdom_ifft |
( |
const std::string |
fname | ) |
|
|
inline |
Export real IFFT wisdom to file.
- Parameters
-
Definition at line 397 of file fftw.h.
References err_handler.
◆ export_wisdom_ifft_cx()
void sp::FFTW::export_wisdom_ifft_cx |
( |
const std::string |
fname | ) |
|
|
inline |
Export complex IFFT wisdom to file.
- Parameters
-
Definition at line 481 of file fftw.h.
References err_handler.
◆ fft() [1/2]
void sp::FFTW::fft |
( |
arma::vec & |
x, |
|
|
arma::cx_vec & |
Pxx |
|
) |
| |
|
inline |
◆ fft() [2/2]
arma::cx_vec sp::FFTW::fft |
( |
arma::vec & |
x | ) |
|
|
inline |
FFT of real input.
- Returns
- Complex FFT of length N
- Parameters
-
Definition at line 188 of file fftw.h.
References fft().
◆ fft2() [1/2]
void sp::FFTW::fft2 |
( |
arma::mat & |
x, |
|
|
arma::cx_mat & |
Pxx |
|
) |
| |
|
inline |
◆ fft2() [2/2]
arma::cx_mat sp::FFTW::fft2 |
( |
arma::mat & |
x | ) |
|
|
inline |
FFT of real 2D input.
- Returns
- Complex FFT of size [RxC]
- Parameters
-
Definition at line 276 of file fftw.h.
References fft2().
◆ fft_cx() [1/2]
void sp::FFTW::fft_cx |
( |
arma::cx_vec & |
x, |
|
|
arma::cx_vec & |
Pxx |
|
) |
| |
|
inline |
FFT of complex input.
- Parameters
-
| x | Complex input data |
[out] | Pxx | Vector to hold complex FFT of length N |
Definition at line 97 of file fftw.h.
References err_handler.
Referenced by fft_cx().
◆ fft_cx() [2/2]
arma::cx_vec sp::FFTW::fft_cx |
( |
arma::cx_vec & |
x | ) |
|
|
inline |
FFT of complex input.
- Returns
- Complex FFT of length N
- Parameters
-
Definition at line 117 of file fftw.h.
References fft_cx().
◆ ifft() [1/2]
void sp::FFTW::ifft |
( |
arma::cx_vec & |
Pxx, |
|
|
arma::vec & |
x |
|
) |
| |
|
inline |
Inverse FFT.
- Parameters
-
| Pxx | Complex FFT |
[out] | x | Vector to hold real data of length N |
Definition at line 200 of file fftw.h.
References err_handler, and N.
Referenced by ifft().
◆ ifft() [2/2]
arma::vec sp::FFTW::ifft |
( |
arma::cx_vec & |
Pxx | ) |
|
|
inline |
Inverse FFT.
- Returns
- Real data vector of length N
- Parameters
-
Definition at line 221 of file fftw.h.
References ifft().
◆ ifft2() [1/2]
void sp::FFTW::ifft2 |
( |
arma::cx_mat & |
Pxx, |
|
|
arma::mat & |
x |
|
) |
| |
|
inline |
Inverse 2D FFT.
- Parameters
-
| Pxx | Complex FFT |
[out] | x | Matrix to hold real data of size[RxC] |
Definition at line 288 of file fftw.h.
References C, and err_handler.
Referenced by ifft2().
◆ ifft2() [2/2]
arma::mat sp::FFTW::ifft2 |
( |
arma::cx_mat & |
Pxx | ) |
|
|
inline |
Inverse FFT.
- Returns
- Real data vector of length N
- Parameters
-
Definition at line 322 of file fftw.h.
References ifft2().
◆ ifft_cx() [1/2]
void sp::FFTW::ifft_cx |
( |
arma::cx_vec & |
Pxx, |
|
|
arma::cx_vec & |
x |
|
) |
| |
|
inline |
Inverse FFT.
- Parameters
-
| Pxx | Complex FFT |
[out] | x | Vector to hold complex data of length N |
Definition at line 129 of file fftw.h.
References err_handler, and N.
Referenced by ifft_cx().
◆ ifft_cx() [2/2]
arma::cx_vec sp::FFTW::ifft_cx |
( |
arma::cx_vec & |
Pxx | ) |
|
|
inline |
Inverse FFT.
- Returns
- Complex data vector of length N
- Parameters
-
Definition at line 150 of file fftw.h.
References ifft_cx().
◆ import_wisdom_file()
void sp::FFTW::import_wisdom_file |
( |
const std::string |
fname | ) |
|
|
inline |
◆ import_wisdom_string()
void sp::FFTW::import_wisdom_string |
( |
const std::string |
wisd | ) |
|
|
inline |
◆ alg
◆ export_alg
Alg used for exporting wisdom.
Definition at line 37 of file fftw.h.
◆ pl_fft
fftw_plan sp::FFTW::pl_fft |
|
private |
◆ pl_fft_cx
fftw_plan sp::FFTW::pl_fft_cx |
|
private |
◆ pl_ifft
fftw_plan sp::FFTW::pl_ifft |
|
private |
Real IFFTW plan.
Definition at line 29 of file fftw.h.
◆ pl_ifft_cx
fftw_plan sp::FFTW::pl_ifft_cx |
|
private |
Complex IFFTW plan.
Definition at line 31 of file fftw.h.
The documentation for this class was generated from the following file: