[SciPy-dev] matrix and ravel()

Robert Kern rkern at ucsd.edu
Tue Oct 11 19:31:07 CDT 2005


In [1]: A = array([[1,2],[3,4]])

In [2]: B = mat(A)

In [3]: ravel(A)
Out[3]: array([1, 2, 3, 4])

In [4]: ravel(B)
Out[4]: matrix([[1, 2, 3, 4]])

This appears to be a side effect of the new __array_finalize__ magic.
I'm not sure that it's desirable. I'm also not sure that it's desirable
to change it.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Scipy-dev mailing list