[Numpy-discussion] untenable matrix behavior in SVN
Travis E. Oliphant
oliphant@enthought....
Tue Apr 29 16:33:13 CDT 2008
Gael Varoquaux wrote:
> On Tue, Apr 29, 2008 at 10:49:50AM -0500, Travis E. Oliphant wrote:
>
>> As the number of special-case work-arounds grows the more I'm convinced
>> the conceptualization is wrong. So, I now believe we should change the
>> a[i] for matrices to return a 1-d array.
>>
>
>
>> The only down-side I see is that a[i] != a[i,:] for matrices.
>> However, matrix(a[i]) == a[i,:], and so I'm not sure there is really a
>> problem, there.
>>
>
> I think we have simply replaced one problem by another one. I think this
> is a bad route to go.
The problem is that I know exactly what the problem we are replacing,
but I have no idea only vagueries about the problem we are getting. So,
in the short term, it seems like the right thing to do, because we
aren't preventing a change to RowVector/ColumnVector in the future.
-Travis
More information about the Numpy-discussion
mailing list