[Numpy-discussion] rank-0 arrays
Konrad Hinsen
hinsen at cnrs-orleans.fr
Fri Sep 13 12:22:03 EDT 2002
Scott Gilbert <xscottg at yahoo.com> writes:
> > a. Return the scalar value (what numarray does
> > now. seems inconsistent)
>
> If you think of it as "dereferencing" instead of "indexing", I think this
> is most consistent. It takes 3 elements to dereference a rank-3 array, so
> it should take 0 elements to dereference a rank-0 array.
That would be fine with me, but empty index brackets raise a
SyntaxError in Python.
Konrad.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the NumPy-Discussion
mailing list