numpy FAQ (wizard) Re: [MATRIX-SIG] array([0,1,2,3]).reverse()

Aaron Watters arw@dante.mh.lucent.com
Mon, 18 Aug 1997 09:28:35 -0400


Looks like we need a NumPy FAQ somewhere.

Someone should look into setting up Guido's
excellent FAQ wizard for this purpose somewhere.
This would allow all of us to add our own entries.
   -- Aaron Watters

ps: /F, if you are listening, have you had any luck
  with this?  I haven't tried, I'm ashamed to admit.

----------
> From: Timothy A. Hochberg <hochberg@wwa.com>
> To: Jean-Bernard ADDOR <jbaddor@phy.ulaval.ca>
> Cc: matrix-sig@python.org
> Subject: Re: [MATRIX-SIG] array([0,1,2,3]).reverse()
> Date: Friday, August 15, 1997 8:02 PM
> 
> On Fri, 15 Aug 1997, Jean-Bernard ADDOR wrote:
> 
> > Hy!
> > 
> > How to obtain an array in the reverse order ?
> > If i have array([0,1,2,3])
> > I want array([3,2,1,0]).
> 
> Try:
> 
> a = array([0,1,2,3])
> b = a[::-1]
> b # should give [3,2,1,0]
> 
>  ____   
>   /im  
> 
> +------------------------------------------------+
> |Tim Hochberg            Research Assistant      |
> |hochberg <at> wwa.com   University of Illinois  |
> |                        Electrical Engineering  |
> +------------------------------------------------+
> 
> 
> _______________
> MATRIX-SIG  - SIG on Matrix Math for Python
> 
> send messages to: matrix-sig@python.org
> administrivia to: matrix-sig-request@python.org
> _______________
> 

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________