|
27 | 27 | #include "mkl.h" |
28 | 28 | #include "numpy/arrayobject.h" |
29 | 29 |
|
30 | | -typedef struct DftiCache { |
31 | | - DFTI_DESCRIPTOR_HANDLE hand; |
32 | | - int initialized; |
| 30 | +typedef struct DftiCache |
| 31 | +{ |
| 32 | + DFTI_DESCRIPTOR_HANDLE hand; |
| 33 | + int initialized; |
33 | 34 | } DftiCache; |
34 | 35 |
|
35 | 36 | extern int _free_dfti_cache(DftiCache *); |
36 | 37 |
|
37 | 38 | /* Complex input, in-place */ |
38 | | -extern int cdouble_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double, |
39 | | - DftiCache *); |
40 | | -extern int cfloat_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double, |
41 | | - DftiCache *); |
42 | | -extern int cdouble_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double, |
43 | | - DftiCache *); |
44 | | -extern int cfloat_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double, |
45 | | - DftiCache *); |
| 39 | +extern int |
| 40 | + cdouble_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
| 41 | +extern int |
| 42 | + cfloat_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
| 43 | +extern int |
| 44 | + cdouble_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
| 45 | +extern int |
| 46 | + cfloat_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
46 | 47 |
|
47 | 48 | /* Complex input/output, out-of-place */ |
48 | | -extern int cfloat_cfloat_mkl_fft1d_out(PyArrayObject *, npy_intp, int, |
49 | | - PyArrayObject *, double, DftiCache *); |
50 | | -extern int cdouble_cdouble_mkl_fft1d_out(PyArrayObject *, npy_intp, int, |
51 | | - PyArrayObject *, double, DftiCache *); |
52 | | -extern int cfloat_cfloat_mkl_ifft1d_out(PyArrayObject *, npy_intp, int, |
53 | | - PyArrayObject *, double, DftiCache *); |
54 | | -extern int cdouble_cdouble_mkl_ifft1d_out(PyArrayObject *, npy_intp, int, |
55 | | - PyArrayObject *, double, DftiCache *); |
| 49 | +extern int cfloat_cfloat_mkl_fft1d_out(PyArrayObject *, |
| 50 | + npy_intp, |
| 51 | + int, |
| 52 | + PyArrayObject *, |
| 53 | + double, |
| 54 | + DftiCache *); |
| 55 | +extern int cdouble_cdouble_mkl_fft1d_out(PyArrayObject *, |
| 56 | + npy_intp, |
| 57 | + int, |
| 58 | + PyArrayObject *, |
| 59 | + double, |
| 60 | + DftiCache *); |
| 61 | +extern int cfloat_cfloat_mkl_ifft1d_out(PyArrayObject *, |
| 62 | + npy_intp, |
| 63 | + int, |
| 64 | + PyArrayObject *, |
| 65 | + double, |
| 66 | + DftiCache *); |
| 67 | +extern int cdouble_cdouble_mkl_ifft1d_out(PyArrayObject *, |
| 68 | + npy_intp, |
| 69 | + int, |
| 70 | + PyArrayObject *, |
| 71 | + double, |
| 72 | + DftiCache *); |
56 | 73 |
|
57 | 74 | /* Real input, complex output, out-of-place */ |
58 | | -extern int float_cfloat_mkl_fft1d_out(PyArrayObject *, npy_intp, int, |
59 | | - PyArrayObject *, int, double, |
| 75 | +extern int float_cfloat_mkl_fft1d_out(PyArrayObject *, |
| 76 | + npy_intp, |
| 77 | + int, |
| 78 | + PyArrayObject *, |
| 79 | + int, |
| 80 | + double, |
60 | 81 | DftiCache *); |
61 | | -extern int double_cdouble_mkl_fft1d_out(PyArrayObject *, npy_intp, int, |
62 | | - PyArrayObject *, int, double, |
| 82 | +extern int double_cdouble_mkl_fft1d_out(PyArrayObject *, |
| 83 | + npy_intp, |
| 84 | + int, |
| 85 | + PyArrayObject *, |
| 86 | + int, |
| 87 | + double, |
63 | 88 | DftiCache *); |
64 | | -extern int float_cfloat_mkl_ifft1d_out(PyArrayObject *, npy_intp, int, |
65 | | - PyArrayObject *, int, double, |
| 89 | +extern int float_cfloat_mkl_ifft1d_out(PyArrayObject *, |
| 90 | + npy_intp, |
| 91 | + int, |
| 92 | + PyArrayObject *, |
| 93 | + int, |
| 94 | + double, |
66 | 95 | DftiCache *); |
67 | | -extern int double_cdouble_mkl_ifft1d_out(PyArrayObject *, npy_intp, int, |
68 | | - PyArrayObject *, int, double, |
| 96 | +extern int double_cdouble_mkl_ifft1d_out(PyArrayObject *, |
| 97 | + npy_intp, |
| 98 | + int, |
| 99 | + PyArrayObject *, |
| 100 | + int, |
| 101 | + double, |
69 | 102 | DftiCache *); |
70 | 103 |
|
71 | 104 | /* Real input, real output, in-place */ |
72 | | -extern int float_mkl_rfft_in(PyArrayObject *, npy_intp, int, double, |
73 | | - DftiCache *); |
74 | | -extern int float_mkl_irfft_in(PyArrayObject *, npy_intp, int, double, |
75 | | - DftiCache *); |
| 105 | +extern int |
| 106 | + float_mkl_rfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
| 107 | +extern int |
| 108 | + float_mkl_irfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
76 | 109 |
|
77 | | -extern int double_mkl_rfft_in(PyArrayObject *, npy_intp, int, double, |
78 | | - DftiCache *); |
79 | | -extern int double_mkl_irfft_in(PyArrayObject *, npy_intp, int, double, |
80 | | - DftiCache *); |
| 110 | +extern int |
| 111 | + double_mkl_rfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
| 112 | +extern int |
| 113 | + double_mkl_irfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *); |
81 | 114 |
|
82 | 115 | /* Real input, real output, out-of-place */ |
83 | | -extern int float_float_mkl_rfft_out(PyArrayObject *, npy_intp, int, |
84 | | - PyArrayObject *, double, DftiCache *); |
85 | | -extern int float_float_mkl_irfft_out(PyArrayObject *, npy_intp, int, |
86 | | - PyArrayObject *, double, DftiCache *); |
87 | | - |
88 | | -extern int double_double_mkl_rfft_out(PyArrayObject *, npy_intp, int, |
89 | | - PyArrayObject *, double, DftiCache *); |
90 | | -extern int double_double_mkl_irfft_out(PyArrayObject *, npy_intp, int, |
91 | | - PyArrayObject *, double, DftiCache *); |
| 116 | +extern int float_float_mkl_rfft_out(PyArrayObject *, |
| 117 | + npy_intp, |
| 118 | + int, |
| 119 | + PyArrayObject *, |
| 120 | + double, |
| 121 | + DftiCache *); |
| 122 | +extern int float_float_mkl_irfft_out(PyArrayObject *, |
| 123 | + npy_intp, |
| 124 | + int, |
| 125 | + PyArrayObject *, |
| 126 | + double, |
| 127 | + DftiCache *); |
| 128 | + |
| 129 | +extern int double_double_mkl_rfft_out(PyArrayObject *, |
| 130 | + npy_intp, |
| 131 | + int, |
| 132 | + PyArrayObject *, |
| 133 | + double, |
| 134 | + DftiCache *); |
| 135 | +extern int double_double_mkl_irfft_out(PyArrayObject *, |
| 136 | + npy_intp, |
| 137 | + int, |
| 138 | + PyArrayObject *, |
| 139 | + double, |
| 140 | + DftiCache *); |
92 | 141 |
|
93 | 142 | /* Complex input. real output, out-of-place */ |
94 | | -extern int cdouble_double_mkl_irfft_out(PyArrayObject *, npy_intp, int, |
95 | | - PyArrayObject *, double, DftiCache *); |
96 | | -extern int cfloat_float_mkl_irfft_out(PyArrayObject *, npy_intp, int, |
97 | | - PyArrayObject *, double, DftiCache *); |
| 143 | +extern int cdouble_double_mkl_irfft_out(PyArrayObject *, |
| 144 | + npy_intp, |
| 145 | + int, |
| 146 | + PyArrayObject *, |
| 147 | + double, |
| 148 | + DftiCache *); |
| 149 | +extern int cfloat_float_mkl_irfft_out(PyArrayObject *, |
| 150 | + npy_intp, |
| 151 | + int, |
| 152 | + PyArrayObject *, |
| 153 | + double, |
| 154 | + DftiCache *); |
98 | 155 |
|
99 | 156 | /* Complex, ND, in-place */ |
100 | 157 | extern int cdouble_cdouble_mkl_fftnd_in(PyArrayObject *, double); |
101 | 158 | extern int cdouble_cdouble_mkl_ifftnd_in(PyArrayObject *, double); |
102 | 159 | extern int cfloat_cfloat_mkl_fftnd_in(PyArrayObject *, double); |
103 | 160 | extern int cfloat_cfloat_mkl_ifftnd_in(PyArrayObject *, double); |
104 | 161 |
|
105 | | -extern int cdouble_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, |
106 | | - double); |
107 | | -extern int cdouble_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, |
108 | | - double); |
109 | | -extern int cfloat_cfloat_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, |
110 | | - double); |
111 | | -extern int cfloat_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, |
112 | | - double); |
| 162 | +extern int |
| 163 | + cdouble_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double); |
| 164 | +extern int |
| 165 | + cdouble_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double); |
| 166 | +extern int |
| 167 | + cfloat_cfloat_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double); |
| 168 | +extern int |
| 169 | + cfloat_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double); |
113 | 170 |
|
114 | 171 | extern int float_cfloat_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double); |
115 | | -extern int float_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, |
116 | | - double); |
117 | | -extern int double_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, |
118 | | - double); |
119 | | -extern int double_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, |
120 | | - double); |
| 172 | +extern int |
| 173 | + float_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double); |
| 174 | +extern int |
| 175 | + double_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double); |
| 176 | +extern int |
| 177 | + double_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double); |
121 | 178 |
|
122 | 179 | extern char *mkl_dfti_error(MKL_LONG); |
0 commit comments