diff options
author | Pauli Virtanen <pav@iki.fi> | 2013-10-07 21:22:34 +0300 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2013-10-07 23:24:21 +0300 |
commit | bbfe9a475a962fd90022fd654829b652c6679ce9 (patch) | |
tree | 894aaa0a460d74acdc068dda464e7fb0921bcb05 | |
parent | 694ce0e5c939a6eab80e4fe083aedf1a19ceb845 (diff) | |
download | numpy-bbfe9a475a962fd90022fd654829b652c6679ce9.tar.gz |
BUG: linalg: fix eigvalsh return type (always real-valued)
-rw-r--r-- | numpy/linalg/linalg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index a1bb842ee..aa3bdea34 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -965,7 +965,7 @@ def eigvalsh(a, UPLO='L'): t, result_t = _commonType(a) signature = 'D->d' if isComplexType(t) else 'd->d' w = gufunc(a, signature=signature, extobj=extobj) - return w.astype(result_t) + return w.astype(_realType(result_t)) def _convertarray(a): t, result_t = _commonType(a) |