1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
#include "ltfat.h"
#include "ltfat_types.h"
LTFAT_EXTERN
void LTFAT_NAME_COMPLEX(dgt_long)(const LTFAT_COMPLEX *f, const LTFAT_COMPLEX *g,
const ltfatInt L, const ltfatInt W,
const ltfatInt a, const ltfatInt M,
const dgt_phasetype ptype, LTFAT_COMPLEX *cout)
{
LTFAT_NAME(dgt_long_plan) plan =
LTFAT_NAME(dgt_long_init)(f, g, L, W, a, M, cout, ptype, FFTW_ESTIMATE);
LTFAT_NAME(dgt_long_execute)(plan);
LTFAT_NAME(dgt_long_done)(plan);
}
LTFAT_EXTERN
void LTFAT_NAME(dgt_long)(const LTFAT_REAL *f, const LTFAT_REAL *g,
const ltfatInt L, const ltfatInt W, const ltfatInt a,
const ltfatInt M, const dgt_phasetype ptype,
LTFAT_COMPLEX *cout)
{
LTFAT_COMPLEX* gf = (LTFAT_COMPLEX*) ltfat_malloc(L * sizeof(LTFAT_COMPLEX));
LTFAT_NAME_REAL(wfac)(g, L, 1, a, M, gf);
LTFAT_NAME(dgt_fac_r)(f, (const LTFAT_COMPLEX*)gf, L, W, a, M, ptype, cout);
ltfat_free(gf);
}
LTFAT_EXTERN
void LTFAT_NAME(dgtreal_long)(const LTFAT_REAL *f, const LTFAT_REAL *g,
const ltfatInt L, const ltfatInt W, const ltfatInt a,
const ltfatInt M, const dgt_phasetype ptype,
LTFAT_COMPLEX *cout)
{
LTFAT_NAME(dgtreal_long_plan) plan =
LTFAT_NAME(dgtreal_long_init)(f, g, L, W, a, M, cout, ptype, FFTW_ESTIMATE);
LTFAT_NAME(dgtreal_long_execute)(plan);
LTFAT_NAME(dgtreal_long_done)(plan);
}
LTFAT_EXTERN void
LTFAT_NAME_COMPLEX(dgt_fb)(const LTFAT_COMPLEX *f, const LTFAT_COMPLEX *g,
const ltfatInt L, const ltfatInt gl,
const ltfatInt W, const ltfatInt a, const ltfatInt M,
const dgt_phasetype ptype, LTFAT_COMPLEX *cout)
{
LTFAT_NAME(dgt_fb_plan) plan =
LTFAT_NAME(dgt_fb_init)(g, gl, a, M, ptype, FFTW_ESTIMATE);
LTFAT_NAME(dgt_fb_execute)(plan, f, L, W, cout);
LTFAT_NAME(dgt_fb_done)(plan);
}
LTFAT_EXTERN void
LTFAT_NAME(dgtreal_fb)(const LTFAT_REAL *f, const LTFAT_REAL *g,
const ltfatInt L, const ltfatInt gl,
const ltfatInt W, const ltfatInt a, const ltfatInt M,
const dgt_phasetype ptype, LTFAT_COMPLEX *cout)
{
LTFAT_NAME(dgtreal_fb_plan) plan =
LTFAT_NAME(dgtreal_fb_init)(g, gl, a, M, ptype, FFTW_ESTIMATE);
LTFAT_NAME(dgtreal_fb_execute)(plan, f, L, W, cout);
LTFAT_NAME(dgtreal_fb_done)(plan);
}
LTFAT_EXTERN void
LTFAT_NAME(dgt_ola)(const LTFAT_COMPLEX *f, const LTFAT_COMPLEX *g,
const ltfatInt L, const ltfatInt gl,
const ltfatInt W, const ltfatInt a, const ltfatInt M,
const ltfatInt bl, const dgt_phasetype ptype,
LTFAT_COMPLEX *cout)
{
LTFAT_NAME(dgt_ola_plan) plan =
LTFAT_NAME(dgt_ola_init)(g, gl, W, a, M, bl, ptype, FFTW_ESTIMATE);
LTFAT_NAME(dgt_ola_execute)(plan, f, L, cout);
LTFAT_NAME(dgt_ola_done)(plan);
}
LTFAT_EXTERN void
LTFAT_NAME(dgtreal_ola)(const LTFAT_REAL *f, const LTFAT_REAL *g,
const ltfatInt L, const ltfatInt gl,
const ltfatInt W, const ltfatInt a, const ltfatInt M,
const ltfatInt bl, const dgt_phasetype ptype,
LTFAT_COMPLEX *cout)
{
LTFAT_NAME(dgtreal_ola_plan) plan =
LTFAT_NAME(dgtreal_ola_init)(g, gl, W, a, M, bl, ptype, FFTW_ESTIMATE);
LTFAT_NAME(dgtreal_ola_execute)(plan, f, L, cout);
LTFAT_NAME(dgtreal_ola_done)(plan);
}
|