Skip to content

Simplify _eval_hessian_inner #2730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 22, 2025
Merged

Simplify _eval_hessian_inner #2730

merged 6 commits into from
Apr 22, 2025

Conversation

blegat
Copy link
Member

@blegat blegat commented Apr 20, 2025

A large of code was almost copy-pasted so I think a sub-function is a win for readability.
Doing the _reinterpret magic inside _hessian_slice_inner along with the other _reinterpret calls also allows to simplify logic quite a bit by keeping these contained inside this function only.

@blegat blegat force-pushed the bl/hessian_forward branch from 3b336ac to 47d8620 Compare April 21, 2025 07:35
@odow odow merged commit dadc879 into master Apr 22, 2025
31 checks passed
@odow odow deleted the bl/hessian_forward branch April 22, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants