Skip to content

Commit

Permalink
Merge pull request #1 from KoBoldMetals/ikang/scipy_1.14
Browse files Browse the repository at this point in the history
Use `subset_by_index` keyword arg for `scipy.linalg.eigh`
  • Loading branch information
ikding authored Sep 17, 2024
2 parents a8cf56f + 014f511 commit bbaa228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parallel_transport_unfolding/ptu.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def mds(self):
S, V = eigsh(G, self.embedding_dim, which="LA")
else:
# dense eigensolver
S, V = eigh(G, eigvals=[N-self.embedding_dim, N-1])
S, V = eigh(G, subset_by_index=[N-self.embedding_dim, N-1])
self.Embedding = V * np.sqrt(np.abs(S))
self.logger.info('Performing MultiDimensional Scaling: done')
except Exception:
Expand Down

0 comments on commit bbaa228

Please sign in to comment.