#include <vector>
#include <complex>
#include <math.h>
#include <numbers>
Go to the source code of this file.
|
template<typename T > |
std::complex< T > | nthRootOfUnity (T fraction) |
|
template<typename T > |
std::complex< T > | nthRootOfUnity (int numerator, size_t denominator) |
|
template<typename T > |
std::vector< std::complex< T > > | dft (const std::vector< T > &inputData) |
|
template<typename T > |
std::vector< std::complex< T > > | idft (const std::vector< std::complex< T > > &inputData) |
|
template<typename T > |
std::vector< std::complex< T > > | fft (const std::vector< T > &inputData) |
|
template<typename T > |
std::vector< std::complex< T > > | ifft (const std::vector< std::complex< T > > &inputData) |
|
template<typename T , typename Iter , typename U = T, int dir = 1> |
void | _fftHelperRadix2 (const std::vector< T > &inputData, Iter result, Iter scratch, size_t offset, size_t stride) |
|
◆ _fftHelperRadix2()
template<typename T , typename Iter , typename U = T, int dir = 1>
void _fftHelperRadix2 |
( |
const std::vector< T > & |
inputData, |
|
|
Iter |
result, |
|
|
Iter |
scratch, |
|
|
size_t |
offset, |
|
|
size_t |
stride |
|
) |
| |
◆ dft()
template<typename T >
std::vector<std::complex<T> > dft |
( |
const std::vector< T > & |
inputData | ) |
|
◆ fft()
template<typename T >
std::vector<std::complex<T> > fft |
( |
const std::vector< T > & |
inputData | ) |
|
◆ idft()
template<typename T >
std::vector<std::complex<T> > idft |
( |
const std::vector< std::complex< T > > & |
inputData | ) |
|
◆ ifft()
template<typename T >
std::vector<std::complex<T> > ifft |
( |
const std::vector< std::complex< T > > & |
inputData | ) |
|
◆ nthRootOfUnity() [1/2]
template<typename T >
std::complex<T> nthRootOfUnity |
( |
int |
numerator, |
|
|
size_t |
denominator |
|
) |
| |
◆ nthRootOfUnity() [2/2]
template<typename T >
std::complex<T> nthRootOfUnity |
( |
T |
fraction | ) |
|