[Numpy-discussion] weird indexing

Mathew Yeates myeates@jpl.nasa....
Thu Jan 3 18:16:39 CST 2008

Okay, here's a weird one. In Fortran you can specify the upper/lower 
bounds of an array
e.g. REAL A(3:7)

What would be the best way to translate this to a Numpy array? I would 
like to do something like
and have the expression A[3] actually return A[0].

Or something. Any thoughts?


More information about the Numpy-discussion mailing list