Re: [Numpy-discussion] rank-0 arrays
by Travis Oliphant other posts by this author
Sep 13 2002 7:56PM messages near this date
[Numpy-discussion] rank-0 arrays
|
Re: [Numpy-discussion] rank-0 arrays
>
> To restate the issue: there was a question about whether
> an index to an array that identified a single element only
> (i.e., not a slice, nor an incomplete index, e.g. x[3] where
> x is two dimensional) should return a Python scalar or a
> rank-0 array. Currently Numeric is inconsistent on this point.
> One usually gets scalars, but on some occasions, rank-0 arrays
> are returned. Good arguments are to be had for either alternative.
>
I think we should implement Python scalars for the other types and then
eliminate rank-0 arrays completely. I could have a student do this in a
few weeks if it was agreed on.
-Travis Oliphant
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Perry Greenfield
Travis Oliphant
Pearu Peterson
Konrad Hinsen
Perry Greenfield
Todd Miller
Pearu Peterson
Konrad Hinsen
Travis Oliphant
Konrad Hinsen
Perry Greenfield
Travis Oliphant
Tim Hochberg
Chris Barker
Konrad Hinsen
Perry Greenfield
Travis Oliphant
Pearu Peterson
Tim Hochberg
Perry Greenfield
Konrad Hinsen
Perry Greenfield
eric jones
Konrad Hinsen
eric jones
Konrad Hinsen
Tim Hochberg
Tim Hochberg
Paul F Dubois
Scott Gilbert
Konrad Hinsen
|