[Numpy-discussion] weird indexing
Fri Jan 4 04:33:22 CST 2008
On Thu, Jan 03, 2008 at 04:16:39PM -0800, 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?
Create a proxy object with an overriden __getitem__ method? That seems
quite ugly to me.
More information about the Numpy-discussion