[Numpy-discussion] dimension independent copy of corner of array
Neal Becker
ndbecker2 at gmail.com
Mon Jul 13 07:34:27 EDT 2015
I want to copy an array to the corner of a new array. What is a dimension
independent way to say:
newarr[:i0,:i1,...] = oldarray
where (i0,i1...) is oldarray.shape?
More information about the NumPy-Discussion
mailing list