Skip to content

Commit

Permalink
Register lsqr code 2 as not converged
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Jan 10, 2025
1 parent cd4e909 commit ee24fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phiml/backend/_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def count_callback(x_n): # called after each step, not with x0
else:
messages.append(f"Least squares problem not solved (code {ret_val})")
xs.append(x)
converged.append(ret_val in {0, 1, 2})
converged.append(ret_val in {0, 1})
diverged.append(ret_val not in {0, 1, 2})
iterations[bi] = n_iter
residual.append(lin_b @ x - y[bi])
Expand Down

0 comments on commit ee24fcf

Please sign in to comment.