Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /mex/comp_dwilt_long.c [7c7a96] .. [3deeb5] Maximize Restore

  Switch to unified view

a/mex/comp_dwilt_long.c b/mex/comp_dwilt_long.c
...
...
17
// Calling convention:
17
// Calling convention:
18
//  comp_dwilt_long(f,g,M,L);
18
//  comp_dwilt_long(f,g,M,L);
19
19
20
void LTFAT_NAME(ltfatMexFnc)( int nlhs, mxArray *plhs[],int nrhs, const mxArray *prhs[] )
20
void LTFAT_NAME(ltfatMexFnc)( int nlhs, mxArray *plhs[],int nrhs, const mxArray *prhs[] )
21
{
21
{
22
   // UGLY, but there are no cd_dwilt_long cs_dwilt_long functions
23
   // Other option is to use forwarder functions
24
   #undef LTFAT_NAME
25
   #ifdef LTFAT_SINGLE
26
   #  define LTFAT_NAME(name) LTFAT_NAME_SINGLE(name)
27
   #else
28
   #  define LTFAT_NAME(name) LTFAT_NAME_DOUBLE(name)
29
   #endif
30
31
   int M, N, L, W;
22
   int M, N, L, W;
32
23
33
   mwSize ndim;
24
   mwSize ndim;
34
   mwSize dims[3];
25
   mwSize dims[3];
35
26
...
...
57
48
58
   const LTFAT_TYPE* f = (const LTFAT_TYPE*) mxGetData(prhs[0]);
49
   const LTFAT_TYPE* f = (const LTFAT_TYPE*) mxGetData(prhs[0]);
59
   const LTFAT_TYPE* g = (const LTFAT_TYPE*) mxGetData(prhs[1]);
50
   const LTFAT_TYPE* g = (const LTFAT_TYPE*) mxGetData(prhs[1]);
60
   LTFAT_TYPE* cout = (LTFAT_TYPE*) mxGetData(plhs[0]);
51
   LTFAT_TYPE* cout = (LTFAT_TYPE*) mxGetData(plhs[0]);
61
52
53
   LTFAT_NAME(dwilt_long)(f,g,L, W, M, cout);
62
54
63
   #ifdef LTFAT_COMPLEXTYPE
64
      LTFAT_NAME(dwilt_long)((const LTFAT_REAL (*)[2])f,
65
                             (const LTFAT_REAL (*)[2])g,
66
                              L, W, M,
67
                             (LTFAT_REAL (*)[2]) cout);
68
   #else
69
      LTFAT_NAME(dwiltreal_long)(f,g,L, W, M, cout);
70
   #endif
71
55
72
56
73
   return;
57
   return;
74
}
58
}
75
#endif
59
#endif