For an numpy A, what does A[::-1] do?
A[::-1]
'-1' means any dimension of column?
What about 2 dots? For example, the new array doesn't change:
In [11]: x = np.indices((3,3))
In [12]: x
Out[12]:
array([[[0, 0, 0],
[1, 1, 1],
[2, 2, 2]],
[[0, 1, 2],
[0, 1, 2],
[0, 1, 2]]])
In [13]: type(x)
Out[13]: numpy.ndarray
In [14]: x[::-1]
Out[14]:
array([[[0, 1, 2],
[0, 1, 2],
[0, 1, 2]],
[[0, 0, 0],
[1, 1, 1],
[2, 2, 2]]])