diff options
author | cookedm <cookedm@localhost> | 2006-03-10 21:31:27 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-03-10 21:31:27 +0000 |
commit | bf57380caa818b73a4c41409de6ff260425f9bb6 (patch) | |
tree | b2c42e0fde172de5def0c91811845808c00e296e /numpy/linalg/linalg.py | |
parent | f2db317c1fad63f1c85944ba8443b465e32774dc (diff) | |
download | numpy-bf57380caa818b73a4c41409de6ff260425f9bb6.tar.gz |
Run reindent.py (script distributed with Python) over the source to remove extraneous whitespace
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r-- | numpy/linalg/linalg.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index 58bc9fbff..5b8ce6fbe 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -13,7 +13,7 @@ __all__ = ['LinAlgError', 'solve_linear_equations', 'solve', 'eigenvectors', 'eig', 'Heigenvectors', 'eigh','lstsq', 'linear_least_squares' ] - + from numpy.core import * import lapack_lite @@ -49,7 +49,7 @@ def _castCopyAndTranspose(type, *arrays): for a in arrays: cast_arrays = cast_arrays + (transpose(a).astype(type),) if len(cast_arrays) == 1: - return cast_arrays[0] + return cast_arrays[0] else: return cast_arrays @@ -66,7 +66,7 @@ def _fastCopyAndTranspose(type, *arrays): else: cast_arrays = cast_arrays + (_fastCT(a.astype(type)),) if len(cast_arrays) == 1: - return cast_arrays[0] + return cast_arrays[0] else: return cast_arrays @@ -385,7 +385,7 @@ def generalized_inverse(a, rcond = 1.e-10): s[i] = 1./s[i] else: s[i] = 0.; - return wrap(dot(transpose(vt), + return wrap(dot(transpose(vt), multiply(s[:, NewAxis],transpose(u)))) # Determinant @@ -557,5 +557,3 @@ if __name__ == '__main__': a = a+0j b = b+0j test(a, b) - - |