[Numpy-discussion] rank-0 arrays
Konrad Hinsen
hinsen at cnrs-orleans.fr
Fri Sep 13 13:34:02 CDT 2002
Travis Oliphant <oliphant at ee.byu.edu> writes:
> If we just implemented Python scalars for the other precisions then much
> of this rank 0 array business would be solved as we could always return
> the Python scalar rather than an array for rank 0 arrays.
>
> I believe Konrad made this suggestion many moons ago and I would agree
Right. I still think this is the best solution in that it is the least
confusing. If I remember correctly, the main objection was that
implementing all those types was not as trivial as hoped, but I forgot
the details (and it wasn't me who tried).
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