[Scipy-svn] r2504 - trunk/Lib/sparse

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Jan 8 03:24:22 CST 2007


Author: stefan
Date: 2007-01-08 03:24:01 -0600 (Mon, 08 Jan 2007)
New Revision: 2504

Modified:
   trunk/Lib/sparse/info.py
Log:
Fix sparse.info docstring.


Modified: trunk/Lib/sparse/info.py
===================================================================
--- trunk/Lib/sparse/info.py	2007-01-08 07:56:16 UTC (rev 2503)
+++ trunk/Lib/sparse/info.py	2007-01-08 09:24:01 UTC (rev 2504)
@@ -25,12 +25,13 @@
 Example:
     Construct a 10x1000 lil_matrix and add some values to it:
     >>> from scipy import sparse, linsolve
-    >>> from numpy import rand, linalg
+    >>> from numpy import linalg
+    >>> from numpy.random import rand
     >>> A = sparse.lil_matrix((1000, 1000))
     >>> A[0, :100] = rand(100)
     >>> A[1, 100:200] = A[0, :100]
     >>> A.setdiag(rand(1000))
-    
+
     Now convert it to CSR format and solve (A A^T) x = b for x:
     >>> A = A.tocsr()
     >>> b = rand(1000)



More information about the Scipy-svn mailing list