GNU Radio 3.6.5 C++ API
|
Fast FFT filter with gr_complex input, gr_complex output and gr_complex taps. More...
#include <fft_filter.h>
Public Member Functions | |
fft_filter_ccc (int decimation, const std::vector< gr_complex > &taps, int nthreads=1) | |
Construct an FFT filter for complex vectors with the given taps and decimation rate. | |
~fft_filter_ccc () | |
int | set_taps (const std::vector< gr_complex > &taps) |
Set new taps for the filter. | |
void | set_nthreads (int n) |
Set number of threads to use. | |
int | nthreads () const |
Get number of threads being used. | |
int | filter (int nitems, const gr_complex *input, gr_complex *output) |
Perform the filter operation. |
Fast FFT filter with gr_complex input, gr_complex output and gr_complex taps.
gr::filter::kernel::fft_filter_ccc::fft_filter_ccc | ( | int | decimation, |
const std::vector< gr_complex > & | taps, | ||
int | nthreads = 1 |
||
) |
Construct an FFT filter for complex vectors with the given taps and decimation rate.
This is the basic implementation for performing FFT filter for fast convolution in other blocks for complex vectors (such as fft_filter_ccc).
decimation | The decimation rate of the filter (int) |
taps | The filter taps (complex) |
nthreads | The number of threads for the FFT to use (int) |
gr::filter::kernel::fft_filter_ccc::~fft_filter_ccc | ( | ) |
int gr::filter::kernel::fft_filter_ccc::filter | ( | int | nitems, |
const gr_complex * | input, | ||
gr_complex * | output | ||
) |
Perform the filter operation.
nitems | The number of items to produce |
input | The input vector to be filtered |
output | The result of the filter operation |
int gr::filter::kernel::fft_filter_ccc::nthreads | ( | ) | const |
Get number of threads being used.
void gr::filter::kernel::fft_filter_ccc::set_nthreads | ( | int | n | ) |
Set number of threads to use.
int gr::filter::kernel::fft_filter_ccc::set_taps | ( | const std::vector< gr_complex > & | taps | ) |
Set new taps for the filter.
Sets new taps and resets the class properties to handle different sizes
taps | The filter taps (complex) |