> Whether it's necessary to have other keywords to prepend anything other
> than zero, or append rather than prepend, is a lot less clear. Did you find
> a clear need for those things?

No, I haven't found them. For streaming data there might be usecases for 
starting with an initial offset, but I expect there might be no need for a 
returned offset there.

What is notable is that all examples above are 1D.  

To get the behavior of the API right, the simplest solution is to make the 
workaround part of the implementation. What I was pondering on is whether it is 
desirable to allocate the memory once and avoid copying the data. What is the 
price to pay  in terms of code complexity and developer time? Also if the 
accumulation would run in place on a copy of the input data then prepending the 
input might be a good  option introducing very little new overhead.
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to