Skip to content

Commit

Permalink
Merge pull request #2055 from Ericgig/eigh.scipy.1.10
Browse files Browse the repository at this point in the history
Update keyword name for `eigh` for scipy 1.10
  • Loading branch information
Ericgig committed Jan 9, 2023
2 parents 001943f + dd5fe08 commit 1d39b03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qutip/core/data/eigen.py
Expand Up @@ -61,8 +61,9 @@ def _eigs_dense(data, isherm, vecs, eigvals, num_large, num_small):
N = data.shape[0]
kwargs = {}
if eigvals != 0 and isherm:
kwargs['eigvals'] = ([0, num_small-1] if num_small
else [N-num_large, N-1])
kwargs['subset_by_index'] = (
[0, num_small-1] if num_small else [N-num_large, N-1]
)
if vecs:
driver = eigh if isherm else scipy.linalg.eig
evals, evecs = driver(data, **kwargs)
Expand Down

0 comments on commit 1d39b03

Please sign in to comment.