[SciPy-user] (no subject)

dmitrey openopt@ukr....
Mon Aug 20 09:16:38 CDT 2007


Perez Kawumi wrote:
> Hi all,
> Is there a command in python that sorts the elements of a vector in 
> ascending order?
> Thanks
>
> ------------------------------------------------------------------------
> Yahoo! Messenger 
> <http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.messenger.yahoo.com%20> 
> NEW - crystal clear PC to PC calling worldwide with voicemail 
> <http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.messenger.yahoo.com%20> 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   
x = array([3,5,0,9,0,8,9])
x.sort()
 >>> x
array([0, 0, 3, 5, 8, 9, 9])
D


More information about the SciPy-user mailing list