[SciPy-dev] Arrays and matrices share memory?

Stephen Walton stephen.walton at csun.edu
Wed Oct 19 17:31:27 CDT 2005

Travis Oliphant wrote:

>Ah, good catch.  Yes, I believe that mat(A) shares the same data with 
>A.  If this was not the default previously, then it needs to change.  
Copy was the default previously.  If you look at Matrix.py in Numeric 
23.8, you'll see the default value of copy in the __init__ method of the 
Matrix class is 1, while it is presently 0 in the __new__ method of the 
new matrix class.  Changing this allows expm3 and friends to work 
properly again.

More information about the Scipy-dev mailing list