Skip to content

add state argument to invert#229

Merged
jpbrodrick89 merged 1 commit into
mainfrom
jpb/invert-state
Jun 4, 2026
Merged

add state argument to invert#229
jpbrodrick89 merged 1 commit into
mainfrom
jpb/invert-state

Conversation

@jpbrodrick89

Copy link
Copy Markdown
Collaborator

Originally, I didn't think this was necessary but thinking ahead to other uses of solver state I think it could be and its better to build the foundations now. Given the API is identical to linear_solve there should be no confusion from users. Behaviour in the sentinel case (no state) case is identical (solver.init called before creating closure) but I added the missing stop gradient guard.

@jpbrodrick89
jpbrodrick89 merged commit 11e95fb into main Jun 4, 2026
1 check passed
@patrick-kidger
patrick-kidger deleted the jpb/invert-state branch June 5, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant