[Numpy-discussion] Multiarray PEP

Paul Barrett barrett at stsci.edu
Fri Feb 18 07:02:16 EST 2005


Timo Korvola wrote:

>Travis Oliphant <oliphant at ee.byu.edu> writes:
>  
>
>>except for the fact that X[K] where K is a a single
>>integer index array can do 1-d indexing similar to MATLAB.
>>    
>>
[snip,  snip]

>Perhaps only one ellipsis should be allowed for clarity?  Is it useful
>to allow more if they are only equivalent to colons?
>  
>
This is the case anyway, since the ellipsis operator is greedy and 
swallows up all unspecified indices. Any later ellipsis operators should 
be ignored, otherwise this situation is ambiguous.

 -- Paul

-- 
Paul Barrett, PhD      Space Telescope Science Institute
Phone: 410-338-4475    ESS/Science Software Branch
FAX:   410-338-4767    Baltimore, MD 21218





More information about the NumPy-Discussion mailing list