Skip to content

Commit b613691

Browse files
committed
Fixed typos in hermitian SVD
1 parent ead0fec commit b613691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/linalg/dpnp_utils_linalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,8 @@ def _hermitian_svd(a, compute_uv):
848848
# but dpnp.linalg.eigh returns s sorted ascending so we re-order
849849
# the eigenvalues and related arrays to have the correct order
850850
if compute_uv:
851-
s, u = s = dpnp_eigh(a, eigen_mode="V")
852-
sgn = dpnp.sign(s, out=s)
851+
s, u = dpnp_eigh(a, eigen_mode="V")
852+
sgn = dpnp.sign(s)
853853
s = dpnp.abs(s, out=s)
854854
sidx = dpnp.argsort(s)[..., ::-1]
855855
# Rearrange the signs according to sorted indices

0 commit comments

Comments
 (0)