Commit 7e29c45
[jdata4] fix complex array chunking (1D and ND)
- jdataencode: ND chunking of complex tiles now serialises
[real(chunk(:))', imag(chunk(:))'] instead of typecast on the raw
complex buffer (which was platform-dependent)
- jdatadecode: 1D chunked path restored _ArrayZipSize_ to [1,2N]
instead of [2,N], breaking complex(row1,row2) reconstruction;
now sets [2, N/2] when _ArrayIsComplex_ is present
- jdatadecode: ND chunked path allocates a complex intermediate array,
fills real+imag halves per tile, then emits flat [re…,im…] buffer
with correct _ArrayZipSize_ = [2, N]
- test: add 8 tests covering 1D and ND chunking of complex arrays,
both direct decode and roundtrip via savejson/loadjson
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bf5a3bd commit 7e29c45
3 files changed
Lines changed: 63 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
| |||
301 | 306 | | |
302 | 307 | | |
303 | 308 | | |
304 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
305 | 321 | | |
306 | | - | |
307 | 322 | | |
308 | | - | |
309 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
310 | 329 | | |
311 | 330 | | |
312 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
534 | 539 | | |
535 | 540 | | |
536 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4659 | 4659 | | |
4660 | 4660 | | |
4661 | 4661 | | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
4662 | 4695 | | |
4663 | 4696 | | |
4664 | 4697 | | |
| |||
0 commit comments