[Numpy-discussion] ENH: Add the function 'expand_view'

John Kirkham jakirkham at gmail.com
Tue Nov 24 14:57:00 EST 2015

Takes an array and tacks on arbitrary dimensions on either side, which is returned as a view always. Here are the relevant features:

* Creates a view of the array that has the dimensions before and after tacked on to it.
* Takes the before and after arguments independent of each other and the current shape.
* Allows for read and write access to the underlying array.

To see an example of what this would look like, see this PR ( https://github.com/numpy/numpy/pull/6713 ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151124/e3871eaf/attachment.html>

More information about the NumPy-Discussion mailing list