[Numpy-discussion] Release of NumPy

Travis E. Oliphant oliphant at enthought.com
Thu Apr 17 11:11:17 EDT 2008


Alan G Isaac wrote:
>> On 17/04/2008, Alan G Isaac <aisaac at american.edu> wrote:
>>     
>>>         - it retains more ndarray behavior
>>>       
>
>
> On Thu, 17 Apr 2008, Stéfan van der Walt apparently wrote:
>   
>> That is simply not true.  The patch I sent provides everything you 
>> asked for without breaking any ndarray behaviour, whereas your 
>> suggestion breaks x[0] == x[0,:]. 
>>     
>
>
> The behavior I was referring to is:
> iteration through the matrix would
> yield 1d arrays (and all their
> associated behavior).
>
> Sorry that was not clear.
>
> Again, please note that I have said
> multiple times that if iteration
> yields instead 1 by N matrices that
> can be indexed with with a single index
> ("vectors") I will be happy.
>
> What is more, Travis's question seems
> to kill my proposal, since it seems to
> imply that
>   
I didn't intentionally mean to do that.

>         - the behavior of matrices and sparse matrices 
>           should match
>   
This is what I would like.
>         - that x[0] should yield a sparse matrix if x is 
>           a sparse matrix
>   
This is what is debatable.  

-Travis




More information about the NumPy-Discussion mailing list