[Numpy-discussion] Matrix construction

Ed Schofield schofield at ftw.at
Thu Jun 22 02:53:44 CDT 2006


On 22/06/2006, at 12:40 AM, Bill Baxter wrote:

> Actually I think using mat() (just an alias for the matrix  
> constructor) is a bad way to do it.  That mat() (and most others on  
> that page) should probably be replaced with asmatrix() to avoid the  
> copy.

Perhaps the 'mat' function should become an alias for 'asmatrix'.   
I've thought this for a while.  Then code and documentation like this  
page could remain short and simple without incurring the performance  
penalty.

Go on, shoot me down! :)

-- Ed





More information about the Numpy-discussion mailing list