[Scipy-svn] r3775 - trunk/scipy/io/matlab

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Jan 3 17:15:51 EST 2008


Author: wnbell
Date: 2008-01-03 16:15:45 -0600 (Thu, 03 Jan 2008)
New Revision: 3775

Modified:
   trunk/scipy/io/matlab/mio5.py
Log:
sort CSC row indices before MATLAB export


Modified: trunk/scipy/io/matlab/mio5.py
===================================================================
--- trunk/scipy/io/matlab/mio5.py	2008-01-03 21:51:10 UTC (rev 3774)
+++ trunk/scipy/io/matlab/mio5.py	2008-01-03 22:15:45 UTC (rev 3775)
@@ -667,6 +667,7 @@
 
         '''
         A = self.arr.tocsc() # convert to sparse CSC format
+        A.sort_indices()
         is_complex = (A.dtype.kind == 'c')
         nz = A.nnz
 




More information about the Scipy-svn mailing list