Commit 44a4b7a
committed
Fix insidious issue where 1D complex and real transforms of C-contiguous and F-contiguous arrays of array rank > 2 holding the same data would differ.
The discrepancy comes from attempt to formulate 1D transform over such arrays as a single call to DftiCompute on equidistant vectors.
For this to work, in out-of-place mode, both input and output must both be either C-contiguous or F-contiguous.
Previously the output was always allocated as C-contiguous empty blob.1 parent 069ced6 commit 44a4b7a
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| 242 | + | |
240 | 243 | | |
241 | | - | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
0 commit comments