#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 |
◆ FFTW() [2/2]
| sp::FFTW::FFTW |
( |
unsigned int |
_R, |
|
|
unsigned int |
_C, |
|
|
int |
_alg |
|
) |
| |
|
inline |
◆ ~FFTW()
◆ export_wisdom_fft()
| void sp::FFTW::export_wisdom_fft |
( |
const std::string |
fname | ) |
|
|
inline |
◆ export_wisdom_fft_cx()
| void sp::FFTW::export_wisdom_fft_cx |
( |
const std::string |
fname | ) |
|
|
inline |
◆ export_wisdom_ifft()
| void sp::FFTW::export_wisdom_ifft |
( |
const std::string |
fname | ) |
|
|
inline |
◆ export_wisdom_ifft_cx()
| void sp::FFTW::export_wisdom_ifft_cx |
( |
const std::string |
fname | ) |
|
|
inline |
◆ fft() [1/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(), and N.
◆ fft() [2/2]
| void sp::FFTW::fft |
( |
arma::vec & |
x, |
|
|
arma::cx_vec & |
Pxx |
|
) |
| |
|
inline |
◆ fft2() [1/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 275 of file fftw.h.
References C, fft2(), and R.
◆ fft2() [2/2]
| void sp::FFTW::fft2 |
( |
arma::mat & |
x, |
|
|
arma::cx_mat & |
Pxx |
|
) |
| |
|
inline |
◆ fft_cx() [1/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(), and N.
◆ fft_cx() [2/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 alg, err_handler, N, and pl_fft_cx.
Referenced by fft_cx().
◆ ifft() [1/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(), and N.
◆ ifft() [2/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 alg, err_handler, N, and pl_ifft.
Referenced by ifft().
◆ ifft2() [1/2]
| arma::mat sp::FFTW::ifft2 |
( |
arma::cx_mat & |
Pxx | ) |
|
|
inline |
Inverse FFT.
- Returns
- Real data vector of length N
- Parameters
-
Definition at line 320 of file fftw.h.
References C, ifft2(), and R.
◆ ifft2() [2/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 287 of file fftw.h.
References alg, C, err_handler, pl_ifft, and R.
Referenced by ifft2().
◆ ifft_cx() [1/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(), and N.
◆ ifft_cx() [2/2]
| void sp::FFTW::ifft_cx |
( |
arma::cx_vec & |
Pxx, |
|
|
arma::cx_vec & |
x |
|
) |
| |
|
inline |
◆ 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
plans](http://fftw.org/fftw3_doc/Planner-Flags.html#Planner-Flags)
One of FFTW_ESTIMATE, FFTW_MEASURE, FFTW_PATIENT, FFTW_EXHAUSTIVE, FFTW_WISDOM_ONLY see [FFTW
Definition at line 34 of file fftw.h.
Referenced by fft(), fft2(), fft_cx(), FFTW(), FFTW(), ifft(), ifft2(), and ifft_cx().
◆ export_alg
FFT length.
Definition at line 32 of file fftw.h.
Referenced by export_wisdom_fft(), export_wisdom_fft_cx(), export_wisdom_ifft(), export_wisdom_ifft_cx(), fft(), fft(), fft_cx(), fft_cx(), FFTW(), FFTW(), ifft(), ifft(), ifft_cx(), and ifft_cx().
◆ 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 |
◆ pl_ifft_cx
| fftw_plan sp::FFTW::pl_ifft_cx |
|
private |
The documentation for this class was generated from the following file: