summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2005-09-30 06:45:22 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2005-09-30 06:45:22 +0000
commitce8da23e05ec7bc4df7ccca8916c1d94e46dac5a (patch)
tree4eda07f5d002930fc4a0b68918076a5bfc2aafd6
parentd87d7f7547086e7b15bf9b701e8ba0c3c13adc17 (diff)
downloadnumpy-ce8da23e05ec7bc4df7ccca8916c1d94e46dac5a.tar.gz
Removed Numeric dependence.
-rw-r--r--scipy/corelib/mtrand/mtrand.c2
-rw-r--r--scipy/corelib/mtrand/mtrand.pyx2
2 files changed, 2 insertions, 2 deletions
diff --git a/scipy/corelib/mtrand/mtrand.c b/scipy/corelib/mtrand/mtrand.c
index 327bd7fa3..3d565eee4 100644
--- a/scipy/corelib/mtrand/mtrand.c
+++ b/scipy/corelib/mtrand/mtrand.c
@@ -3847,7 +3847,7 @@ static __Pyx_InternTabEntry __pyx_intern_tab[] = {
{&__pyx_n_Float64, "Float64"},
{&__pyx_n_Int, "Int"},
{&__pyx_n_MT19937, "MT19937"},
- {&__pyx_n_Numeric, "Numeric"},
+ {&__pyx_n_Numeric, "scipy"},
{&__pyx_n_ValueError, "ValueError"},
{&__pyx_n___RandomState_ctor, "__RandomState_ctor"},
{&__pyx_n__rand, "_rand"},
diff --git a/scipy/corelib/mtrand/mtrand.pyx b/scipy/corelib/mtrand/mtrand.pyx
index d1fb6d183..640134ea0 100644
--- a/scipy/corelib/mtrand/mtrand.pyx
+++ b/scipy/corelib/mtrand/mtrand.pyx
@@ -670,7 +670,7 @@ cdef class RandomState:
# covariance. Note that sqrt(s)*v where (u,s,v) is the singular value
# decomposition of cov is such an A.
(u,s,v) = scipy.linalg.singular_value_decomposition(cov)
- x = scipy.matrixmultiply(x*Numeric.sqrt(s),v)
+ x = scipy.matrixmultiply(x*scipy.sqrt(s),v)
# The rows of x now have the correct covariance but mean 0. Add
# mean to each row. Then each row will have mean mean.
scipy.add(mean,x,x)