Skip to content

Commit 2a26413

Browse files
committed
Make assignment of diagional of dU/dV consistent
1 parent c3ad006 commit 2a26413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

varipeps/utils/svd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _svd_jvp_rule_impl(primals, tangents, only_u_or_vt=None, use_qr=False):
8787
elif only_u_or_vt == "U":
8888
dU = U @ (F.astype(A.dtype) * (dSS + _H(dSS)) + dUdV_diag)
8989
elif only_u_or_vt == "Vt":
90-
dV = V @ (F.astype(A.dtype) * (SdS + _H(SdS)) + 0.5 * dUdV_diag)
90+
dV = V @ (F.astype(A.dtype) * (SdS + _H(SdS)) + dUdV_diag)
9191

9292
m, n = A.shape[-2:]
9393
if m > n and (only_u_or_vt is None or only_u_or_vt == "U"):

0 commit comments

Comments
 (0)