LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
comp_funcs.hpp File Reference
#include "defs.hpp"
#include "item_heads.hpp"
Include dependency graph for comp_funcs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMP_FUNCS_H

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 >
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

#define COMP_FUNCS_H

Definition at line 19 of file comp_funcs.hpp.

Function Documentation

comp _conj ( comp  inval)
inline

Definition at line 29 of file comp_funcs.hpp.

Here is the caller graph for this function:

double _imag ( comp  inval)
inline

Definition at line 36 of file comp_funcs.hpp.

Here is the caller graph for this function:

double _real ( comp  inval)
inline

Definition at line 33 of file comp_funcs.hpp.

Here is the caller graph for this function:

double _sqabs ( comp  inval)
inline

Definition at line 39 of file comp_funcs.hpp.

Here is the caller graph for this function:

template<typename T >
std::vector<T> appendvec ( std::vector< T >  a,
const std::vector< T > &  b 
)
inline

Definition at line 84 of file comp_funcs.hpp.

Here is the caller graph for this function:

double energy ( comp v,
size_t  s 
)
inline

Definition at line 45 of file comp_funcs.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

double energy ( double *  v,
size_t  s 
)
inline

Definition at line 53 of file comp_funcs.hpp.

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void fft_cleanup ( )
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.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T , size_t N>
std::vector<T> make_append ( const T(&)  array[N],
const std::vector< T > &  b 
)
inline

Definition at line 93 of file comp_funcs.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T , size_t N>
std::vector<T> makevec ( const T(&)  array[N])
inline

Definition at line 89 of file comp_funcs.hpp.

Here is the caller graph for this function:

template<class T >
T trap ( T *restr  v,
size_t  s 
)

Definition at line 62 of file comp_funcs.hpp.

Here is the caller graph for this function: