ENH: Automatic copy on overlap
See original GitHub issueTracking issue as a continuation to gh-6166
- add copy-on-overlap to nditer, as optional flag gh-8043
- use it for ufuncs gh-8043
- check whether copy-on-overlap is respected in indexed assignment
- respect it for
dot()
gh-8539 - check other places in numpy that may need checking
Some initial code, https://github.com/numpy/numpy/compare/master...pv:copy-overlap
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Overlap - aescripts + aeplugins
Create dynamic overlapping action and follow-through for almost any property in your layers or shapes. ... Auto-Orient your Driver and Driven layers/shapes ...
Read more >Are Overlap and Included Times Part of Estimating System ...
You provide them a copy of your assessment/supplement, hand them the vehicle's keys and have them either escorted or directed to the subject...
Read more >Overlapping captions with auto-generated subtitles : r/youtubedl
I've tested downloading subtitles for a couple of different videos and each time I download an auto-generated file, I get a VTT file...
Read more >Running Auxiliary Copy overlaps with Primary schedule
It is possible to adjust the behavior of the Aux copies so they do not automatically add new jobs to copy to the...
Read more >NetSuite Applications Suite - Operations Overlap
Understanding Form Layout Enhancement Upgrade Logic ... Overlapping of manufacturing operations can reduce work order lead times and allow more efficient ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
These seem OK:
copyto
is OK since it goes throughPyArray_AssignArray
, which has an overlap check._ureduce
code (eg, median/percentile) looks OK since it is pure python and delegates to ufuncsaround
is ok because it delegates to ufuncsProblematic:
np.take
There is no overlap detection. Demonstration:np.take(x, [1,2,3], out=x[2:5], mode='wrap')
->array([1., 1., 1.])
.np.choose
no overlap detection. Demonstration:np.choose([0,0,0], [x[:3], x[:3], x[:3]], out=x[1:4], mode='wrap')
->array([1, 1, 1])
Note that for both of these, with
mode='raise'
, which is the default, a copy of out is always made to avoid clobbering out if an error occurs during processing, so there will be no risk of overlap. (incidentally, this seems unexpectedly inefficient for most people!).So if we think those last ones should be fixed, we should keep this open.
Reviewing this as part of my 10 random issues, as requested in a 3/20/19 request.
I am 95% sure this is done and just forgotten to be closed, because in 2019 I have seen these overlap checks in the assignment code, including in code involving assignment to slices of an array.
I’m going to go ahead and close this, please reopen if that’s wrong.