pghi.h
1 #ifndef NOSYSTEMHEADERS
2 #include "ltfat.h"
3 #endif
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 #include "ltfat/types.h"
10 #include "phaseret/types.h"
11 
12 typedef struct PHASERET_NAME(pghi_plan) PHASERET_NAME(pghi_plan);
13 
49 PHASERET_API int
50 PHASERET_NAME(pghi)(const LTFAT_REAL s[], double gamma, ltfat_int L, ltfat_int W,
51  ltfat_int a, ltfat_int M, LTFAT_COMPLEX c[]);
52 
88 PHASERET_API int
89 PHASERET_NAME(pghi_withmask)(const LTFAT_COMPLEX cin[], const int mask[],
90  double gamma, ltfat_int L, ltfat_int W,
91  ltfat_int a, ltfat_int M, LTFAT_COMPLEX c[]);
92 
130 PHASERET_API int
131 PHASERET_NAME(pghi_init)(double gamma, ltfat_int L, ltfat_int W,
132  ltfat_int a, ltfat_int M, double tol1, double tol2,
133  PHASERET_NAME(pghi_plan)** p);
134 
157 PHASERET_API int
158 PHASERET_NAME(pghi_execute)(PHASERET_NAME(pghi_plan)* p, const LTFAT_REAL s[], LTFAT_COMPLEX c[]);
159 
189 PHASERET_API int
190 PHASERET_NAME(pghi_execute_withmask)(PHASERET_NAME(pghi_plan)* p,
191  const LTFAT_COMPLEX cin[], const int mask[],
192  LTFAT_REAL buffer[], LTFAT_COMPLEX c[]);
193 
210 PHASERET_API int
211 PHASERET_NAME(pghi_done)(PHASERET_NAME(pghi_plan)** p);
214 PHASERET_API int*
215 PHASERET_NAME(pghi_get_mask)(PHASERET_NAME(pghi_plan)* p);
216 
217 void
218 PHASERET_NAME(pghimagphase)(const LTFAT_REAL s[], const LTFAT_REAL phase[],
219  ltfat_int L, LTFAT_COMPLEX c[]);
220 
221 void
222 PHASERET_NAME(pghilog)(const LTFAT_REAL in[], ltfat_int L, LTFAT_REAL out[]);
223 
224 void
225 PHASERET_NAME(pghitgrad)(const LTFAT_REAL logs[], double gamma, ltfat_int a, ltfat_int M, ltfat_int N, LTFAT_REAL tgrad[]);
226 
227 void
228 PHASERET_NAME(pghifgrad)(const LTFAT_REAL logs[], double gamma, ltfat_int a, ltfat_int M, ltfat_int N, LTFAT_REAL fgrad[]);
229 
230 
231 #ifdef __cplusplus
232 }
233 #endif
int pghi_execute_withmask(pghi_plan *p, const LTFAT_COMPLEX cin[], const int mask[], LTFAT_REAL buffer[], LTFAT_COMPLEX c[])
int pghi_withmask(const LTFAT_COMPLEX cin[], const int mask[], double gamma, ltfat_int L, ltfat_int W, ltfat_int a, ltfat_int M, LTFAT_COMPLEX c[])
int pghi(const LTFAT_REAL s[], double gamma, ltfat_int L, ltfat_int W, ltfat_int a, ltfat_int M, LTFAT_COMPLEX c[])
int pghi_done(pghi_plan **p)
int pghi_execute(pghi_plan *p, const LTFAT_REAL s[], LTFAT_COMPLEX c[])
int pghi_init(double gamma, ltfat_int L, ltfat_int W, ltfat_int a, ltfat_int M, double tol1, double tol2, pghi_plan **p)