Skip to content

feat: autograd support for chained affine transforms: rotation, scaling, translation #2475

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

Closed
wants to merge 7 commits into from

Conversation

rahul-flex
Copy link
Contributor

Key changes

Unified affine gradients – one routine now returns gradients for the full linear block ( rotation and scaling) and for translation, replacing the old rotation‑only path.

Correct normal handling – face normals are transformed with the proper inverse‑transpose rule; mesh builder now accepts a linear transform plus translation.

Per‑step gradients – chain‑rule logic recovers a separate gradient for every transform in the sequence.

Validation

Finite‑difference versus autograd tests for scale, translate, size, rotate, and centre parameters.

@yaugenst-flex
Copy link
Collaborator

Closing in favor of #2490

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.

2 participants