[Scipy-svn] r3909 - trunk/scipy/sparse

scipy-svn@scip... scipy-svn@scip...
Sat Feb 9 01:26:53 CST 2008


Author: wnbell
Date: 2008-02-09 01:26:50 -0600 (Sat, 09 Feb 2008)
New Revision: 3909

Modified:
   trunk/scipy/sparse/construct.py
Log:
added missing asformat to bmat()


Modified: trunk/scipy/sparse/construct.py
===================================================================
--- trunk/scipy/sparse/construct.py	2008-02-09 07:25:21 UTC (rev 3908)
+++ trunk/scipy/sparse/construct.py	2008-02-09 07:26:50 UTC (rev 3909)
@@ -329,6 +329,6 @@
                 nnz += A.nnz
 
     shape = (sum(brow_lengths),sum(bcol_lengths)) 
-    return coo_matrix( (data, (row, col)), shape=shape )
+    return coo_matrix( (data, (row, col)), shape=shape ).asformat(format)
 
 



More information about the Scipy-svn mailing list