diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-02-24 16:56:59 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-02-24 16:56:59 +0000 |
commit | 00f2295ec55239ce35687a20a7c58d1583b068f1 (patch) | |
tree | 0b9be469665fc81943ccac5667467627723dc95e /numpy/linalg/linalg.py | |
parent | ec53dd5cac4175116048d847f74076e05b6b1a6a (diff) | |
download | numpy-00f2295ec55239ce35687a20a7c58d1583b068f1.tar.gz |
Added more debugging hooks to PackageLoader: NUMPY_IMPORT_DEBUG. Avoid initiating Scipy/NumpyTest during imports.
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r-- | numpy/linalg/linalg.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index 3c92d7d77..58bc9fbff 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -10,12 +10,12 @@ __all__ = ['LinAlgError', 'solve_linear_equations', 'solve', 'inverse', 'inv', 'cholesky_decomposition', 'cholesky', 'eigenvalues', 'eigvals', 'Heigenvalues', 'eigvalsh', 'generalized_inverse', 'pinv', 'determinant', 'det', 'singular_value_decomposition', 'svd', - 'eigenvectors', 'eig', 'Heigenvectors', 'eigh','lstsq', 'linear_least_squares' + 'eigenvectors', 'eig', 'Heigenvectors', 'eigh','lstsq', + 'linear_least_squares' ] -from numpy import * +from numpy.core import * import lapack_lite -import math # Error object class LinAlgError(Exception): @@ -422,6 +422,7 @@ the number of rows, then residuals will be returned as an empty array otherwise resids = sum((b-dot(A,x)**2). Singular values less than s[0]*rcond are treated as zero. """ + import math a = asarray(a) b, wrap = _makearray(b) one_eq = len(b.shape) == 1 |