[Numpy-discussion] weird indexing
Fri Jan 4 04:37:39 CST 2008
On Fri, January 4, 2008 2:16 am, Mathew Yeates wrote:
> 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 actually return A.
> Or something. Any thoughts?
f2py wraps A(3:7) to numpy array A[0:5] and keeps it that way
as it is most natural for working in Python side.
More information about the Numpy-discussion