Fix least_squares xtol result

This commit is contained in:
winklemad
2026-07-22 08:17:25 +05:30
parent 91bb075108
commit 72c9f2af63
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -416,6 +416,8 @@ def least_squares(
# Check termination condition on step norm.
if dx_norm < xtol * (xtol + np.linalg.norm(x)):
x = xnew
r = rnew
status = Status.DX_TOL
break