[Numpy-discussion] matrices in 1.1

Alan G Isaac aisaac@american....
Fri Mar 21 13:11:38 CDT 2008

On Fri, 21 Mar 2008, Stéfan van der Walt apparently wrote:
> The last I remember, we considered adding RowVector, 
> ColumnVector and letting slices out of a matrix either be 
> one of those or a matrix itself.

There was a subsequent discussion.

> I simply don't see a Matrix as a container of ndarrays 

That is hardly an argument.

Remember, any indexing that when applied to an 2d array
would produce a 2d array will when applied to a matrix
still produce a matrix.

This is really just principle of least surprise.

Or, if you want a complementary way of looking at it,
it is keeping as much of the natural behavior
of the ndarray as possible while adding convenient
submatrices, matrix multiplication, and inverse.

Alan Isaac

PS Are you a *user* of matrices?

More information about the Numpy-discussion mailing list