[Numpy-discussion] Mirror/flip numpy array?
Fri Jul 17 08:21:51 CDT 2009
In : a=array([1,2,3])
In : a[::-1]
Out: array([3, 2, 1])
Johannes Bauer wrote:
> Hello list,
> I have a really simple newbie question: How can I mirror/flip a
> numpy.ndarray? I.e. mirror switches the colums (leftmost becomes
> rightmost and so on), flip changes the rows (top becomes bottom and so on)?
> Kind regards,
More information about the NumPy-Discussion