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

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Oct 26 22:39:57 EDT 2008


Author: wnbell
Date: 2008-10-26 21:39:52 -0500 (Sun, 26 Oct 2008)
New Revision: 4853

Modified:
   trunk/scipy/sparse/base.py
   trunk/scipy/sparse/extract.py
Log:
minor edits


Modified: trunk/scipy/sparse/base.py
===================================================================
--- trunk/scipy/sparse/base.py	2008-10-26 18:15:34 UTC (rev 4852)
+++ trunk/scipy/sparse/base.py	2008-10-27 02:39:52 UTC (rev 4853)
@@ -514,7 +514,7 @@
     def todia(self):
         return self.tocoo().todia()
 
-    def tobsr(self,blocksize=None):
+    def tobsr(self, blocksize=None):
         return self.tocsr().tobsr(blocksize=blocksize)
 
     def copy(self):

Modified: trunk/scipy/sparse/extract.py
===================================================================
--- trunk/scipy/sparse/extract.py	2008-10-26 18:15:34 UTC (rev 4852)
+++ trunk/scipy/sparse/extract.py	2008-10-27 02:39:52 UTC (rev 4853)
@@ -37,7 +37,7 @@
     Examples
     --------
     >>> from scipy.sparse import csr_matrix
-    >>> A = csr_matrix( [[1,2,0,0,3],[4,5,0,6,7],[0,0,8,9,0]] )
+    >>> A = csr_matrix( [[1,2,0,0,3],[4,5,0,6,7],[0,0,8,9,0]], dtype='int32' )
     >>> A.todense()
     matrix([[1, 2, 0, 0, 3],
             [4, 5, 0, 6, 7],
@@ -103,7 +103,7 @@
     Examples
     --------
     >>> from scipy.sparse import csr_matrix
-    >>> A = csr_matrix( [[1,2,0,0,3],[4,5,0,6,7],[0,0,8,9,0]] )
+    >>> A = csr_matrix( [[1,2,0,0,3],[4,5,0,6,7],[0,0,8,9,0]], dtype='int32' )
     >>> A.todense()
     matrix([[1, 2, 0, 0, 3],
             [4, 5, 0, 6, 7],




More information about the Scipy-svn mailing list