[Numpy-discussion] Confusing selector?

Geoffrey Zhu gzhu at peak6.com
Thu Feb 15 12:08:21 EST 2007


I am really new to numpy but I just found that v[2:4] means selecting
v[2] and v[3]. V[4] is not included! This is quite different from the
conventions of matlab and R. 




_______________________________________________________=0A=
=0A=
The  information in this email or in any file attached=0A=
hereto is intended only for the personal and confiden-=0A=
tial  use  of  the individual or entity to which it is=0A=
addressed and may contain information that is  propri-=0A=
etary  and  confidential.  If you are not the intended=0A=
recipient of this message you are hereby notified that=0A=
any  review, dissemination, distribution or copying of=0A=
this message is strictly prohibited.  This  communica-=0A=
tion  is  for information purposes only and should not=0A=
be regarded as an offer to sell or as  a  solicitation=0A=
of an offer to buy any financial product. Email trans-=0A=
mission cannot be guaranteed to be  secure  or  error-=0A=
free. P6070214=0A=




More information about the NumPy-Discussion mailing list