Commit e53e757
authored
fix: scalar failed in ND fill (#453)
This should both fix the linked issue, as well avoid an extra copy when the dtype is non-matching and the array is non-contigious. Pybind11 makes a copy if either of those are not true; but we were making a copy here but keeping the dtype, possibly making two copies.
Closes #452.1 parent 504beba commit e53e757
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
0 commit comments