#include "defs.hpp"
#include "item_heads.hpp"
Go to the source code of this file.
Functions |
comp | _conj (comp inval) |
double | _real (comp inval) |
double | _imag (comp inval) |
double | _sqabs (comp inval) |
double | energy (comp *v, size_t s) |
double | energy (double *v, size_t s) |
template<class T > |
T | trap (T *restr v, size_t s) |
void | fft (comp *_in, comp *_out, const size_t len) |
| This function performs a fourier transform in the forward direction.
|
void | ifft (comp *_in, comp *_out, const size_t len) |
| This functions performs a normalized fourier transform in the backwards direction.
|
void | fft_cleanup () |
template<typename T > |
std::vector< T > | appendvec (std::vector< T > a, const std::vector< T > &b) |
template<class T , size_t N> |
std::vector< T > | makevec (const T(&array)[N]) |
template<class T , size_t N> |
std::vector< T > | make_append (const T(&array)[N], const std::vector< T > &b) |
Macro Definition Documentation
Function Documentation
double _imag |
( |
comp |
inval | ) |
|
|
inline |
double _real |
( |
comp |
inval | ) |
|
|
inline |
double _sqabs |
( |
comp |
inval | ) |
|
|
inline |
template<typename T >
std::vector<T> appendvec |
( |
std::vector< T > |
a, |
|
|
const std::vector< T > & |
b |
|
) |
| |
|
inline |
double energy |
( |
comp * |
v, |
|
|
size_t |
s |
|
) |
| |
|
inline |
double energy |
( |
double * |
v, |
|
|
size_t |
s |
|
) |
| |
|
inline |
void fft |
( |
comp * |
_in, |
|
|
comp * |
_out, |
|
|
const size_t |
len |
|
) |
| |
This function performs a fourier transform in the forward direction.
Definition at line 134 of file utils.cpp.
void ifft |
( |
comp * |
_in, |
|
|
comp * |
_out, |
|
|
const size_t |
len |
|
) |
| |
This functions performs a normalized fourier transform in the backwards direction.
Definition at line 148 of file utils.cpp.
template<class T , size_t N>
std::vector<T> make_append |
( |
const T(&) |
array[N], |
|
|
const std::vector< T > & |
b |
|
) |
| |
|
inline |
template<class T , size_t N>
std::vector<T> makevec |
( |
const T(&) |
array[N] | ) |
|
|
inline |
template<class T >
T trap |
( |
T *restr |
v, |
|
|
size_t |
s |
|
) |
| |