diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-15 00:48:04 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-15 00:48:04 +0000 |
commit | 03736884e2fb993e096ef801dd49135b9292b823 (patch) | |
tree | 5556dc46592b881b33ae600e385c8578e3e4ebb6 /numpy/linalg/linalg.py | |
parent | 440214d5835da50d9dad3103835fb8b3967eb3b5 (diff) | |
download | numpy-03736884e2fb993e096ef801dd49135b9292b823.tar.gz |
Changed the C-API by making the a.flags object a builtin object for speed. Also fixed issues with linalg and matrices.
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r-- | numpy/linalg/linalg.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index 5b8ce6fbe..2887e9111 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -15,6 +15,7 @@ __all__ = ['LinAlgError', 'solve_linear_equations', 'solve', ] from numpy.core import * +from numpy.lib import * import lapack_lite # Error object @@ -113,7 +114,8 @@ def solve_linear_equations(a, b): # Matrix inversion def inverse(a): - return solve_linear_equations(a, identity(a.shape[0])) + a, wrap = _makearray(a) + return wrap(solve_linear_equations(a, identity(a.shape[0]))) # Cholesky decomposition |