[Scipy-svn] r2081 - trunk/Lib/sparse/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed Jul 12 04:28:40 EDT 2006
Author: stefan
Date: 2006-07-12 03:28:32 -0500 (Wed, 12 Jul 2006)
New Revision: 2081
Modified:
trunk/Lib/sparse/tests/test_sparse.py
Log:
Use numpy.random.rand instead of numpy.rand.
Modified: trunk/Lib/sparse/tests/test_sparse.py
===================================================================
--- trunk/Lib/sparse/tests/test_sparse.py 2006-07-12 06:02:04 UTC (rev 2080)
+++ trunk/Lib/sparse/tests/test_sparse.py 2006-07-12 08:28:32 UTC (rev 2081)
@@ -259,9 +259,9 @@
"""
n = 20
A = self.spmatrix((n,n), dtype=complex)
- x = numpy.rand(n)
- y = numpy.rand(n-1)+1j*numpy.rand(n-1)
- r = numpy.rand(n)
+ x = numpy.random.rand(n)
+ y = numpy.random.rand(n-1)+1j*numpy.rand(n-1)
+ r = numpy.random.rand(n)
for i in range(len(x)):
A[i,i] = x[i]
for i in range(len(y)):
More information about the Scipy-svn
mailing list