[Numpy-discussion] avoiding the matrix copy performance hit

Ed Schofield schofield at ftw.at
Wed Feb 15 02:32:02 CST 2006


Travis Oliphant wrote:

> I think I originally tried to make mat *not* return a copy, but this
> actually broke code in SciPy.  So, I left the default as it was as a
> copy on input.  There is an *asmatrix* command that does not return a
> copy...

All SciPy's unit tests actually pass with a default of copy=False in the
matrix constructor.  So SciPy needn't be the blocker here.  I'd like to
cast a vote for not copying by default, in the interests of efficiency
and, as Bill Baxter argued, usefulness.

-- Ed




More information about the Numpy-discussion mailing list