This NEP draft has some more hints/explanations if you are interested: https://github.com/seberg/numpy/blob/5becd12914d0402967205579d6f59a9815 1e0d98/doc/neps/indexing.rst#examples
Plus, it tries to avoid the word "subspace" hehehe. - Sebastian On Thu, 2018-03-22 at 10:41 +0100, Pauli Virtanen wrote: > ke, 2018-03-21 kello 20:40 +0000, Michael Himes kirjoitti: > > I have discovered what I believe is a bug with array slicing > > involving 3D (and higher) dimension arrays. When slicing a 3D array > > by a single value for axis 0, all values for axis 1, and a list to > > slice axis 2, the dimensionality of the resulting 2D array is > > flipped. However, slicing more than a single index for axis 0 or > > performing the slicing in two steps results in the correct > > dimensionality. Below is a quick example to demonstrate this > > behavior. > > > > https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html#combi > ning-advanced-and-basic-indexing > > The key part seems to be: "There are two parts to the indexing > operation, the subspace defined by the basic indexing > (**excluding integers**) and the subspace from the advanced indexing > part." >
signature.asc
Description: This is a digitally signed message part
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion