Skip to content

Commit

Permalink
Fix root_find(..., SomeLeastSquaresSolver(), ...) returning the wro…
Browse files Browse the repository at this point in the history
…ng auxiliary structure.
  • Loading branch information
patrick-kidger committed Dec 23, 2024
1 parent 5c6335a commit fa6ed87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimistix/_root_find.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def root_find(
return sol
elif isinstance(solver, AbstractLeastSquaresSolver):
del tags
return least_squares(
sol = least_squares(
eqx.Partial(_to_lstsq_fn, fn),
_LstsqToRoot(solver), # pyright: ignore
y0,
Expand Down

0 comments on commit fa6ed87

Please sign in to comment.