Repository navigation
Commit 34d4e13
authored
fix: allow zero strides on empty arrays (#1611)
Treat shapes with an empty axis as non-overlapping when validating
mutable views.
This allows zero strides on empty arrays while keeping the existing
overlap checks for non-empty shapes.
Fixes #16091 parent b0f9657 commit 34d4e13
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2241 | 2241 | | |
2242 | 2242 | | |
2243 | 2243 | | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2244 | 2252 | | |
2245 | 2253 | | |
2246 | 2254 | | |
| |||
0 commit comments