libsdr
0.1.0
A simple SDR library
|
Trivial FFT implementation for buffer sizes of N=2**K. More...
#include <fftplan_native.hh>
Public Types | |
typedef Traits< Scalar >::SScalar | SScalar |
The super-scalar of the input type. More... | |
Public Member Functions | |
FFTPlan (const Buffer< std::complex< Scalar > > &in, const Buffer< std::complex< Scalar > > &out, FFT::Direction dir) | |
Constructs a FFT plan for the input and output buffers. More... | |
virtual | ~FFTPlan () |
Destructor. More... | |
void | operator() () |
Performs the FFT. More... | |
Protected Member Functions | |
void | _calc (std::complex< Scalar > *a, std::complex< Scalar > *b, size_t N, size_t stride) |
Actual FFT implmenetation. More... | |
Protected Attributes | |
size_t | _N |
FFT size, needs to be a power of 2. More... | |
Buffer< std::complex< Scalar > > | _in |
The input buffer. More... | |
Buffer< std::complex< Scalar > > | _out |
The output buffer. More... | |
Buffer< std::complex< SScalar > > | _lut |
The exp(-i 2 pi k / N) look-up table. More... | |
Trivial FFT implementation for buffer sizes of N=2**K.
typedef Traits<Scalar >::SScalar sdr::FFTPlan< Scalar >::SScalar |
The super-scalar of the input type.
|
inline |
Constructs a FFT plan for the input and output buffers.
|
inlinevirtual |
Destructor.
|
inlineprotected |
Actual FFT implmenetation.
|
inline |
Performs the FFT.
|
protected |
The input buffer.
|
protected |
The exp(-i 2 pi k / N) look-up table.
|
protected |
FFT size, needs to be a power of 2.
|
protected |
The output buffer.