Commit 6477157
committed
zip: Fix iteration order debug assertion in Zip
We're trying to assert the iteration order is like C-contig or
C-preferred. The old assertion tripped when combining these two arrays:
- shape 1, 7 strides 7, 1 (layout: CFcf)
- shape 1, 7 strides 1, 2 (layout: f)
The result was that the first was judged to have "no preference" and
second "leaning f", total "leaning f".
The debug assertion tripped a false positive because the traversal is
one-dimensional, so elements are still visited in the required order.
The layout judgment for the second array should ideally be "CFcf" too,
but then it needs an understanding of being one-dimensional with
contiguous stride of 2, which is not implemented.1 parent 9ad7a0f commit 6477157
1 file changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
433 | 453 | | |
434 | 454 | | |
435 | 455 | | |
| |||
673 | 693 | | |
674 | 694 | | |
675 | 695 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | 696 | | |
684 | 697 | | |
685 | 698 | | |
| |||
0 commit comments