Skip to content

Commit

Permalink
Replace use of asfptype().
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hale committed Jul 10, 2024
1 parent 7582e66 commit 72368ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="sgw_tools",
version="2.5.3",
version="2.5.4",
author="Mark Hale",
license="MIT",
description="Spectral graph wavelet tools",
Expand Down
2 changes: 1 addition & 1 deletion sgw_tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def operator_norm(W, maxiter=1000):
if W.shape == (1,1):
return W[0,0]
else:
svals = sparse.linalg.svds(W.asfptype(), k=1, return_singular_vectors=False, solver="lobpcg", maxiter=maxiter)
svals = sparse.linalg.svds(W.astype(np.double, copy=False), k=1, return_singular_vectors=False, solver="lobpcg", maxiter=maxiter)
return svals[0]


Expand Down

0 comments on commit 72368ad

Please sign in to comment.