Skip to content

[ad] Store (scaled) unit vectors inline#23933

Draft
jwnimmer-tri wants to merge 3 commits intoRobotLocomotion:masterfrom
jwnimmer-tri:autodiff-unit-vector-owned-unowned
Draft

[ad] Store (scaled) unit vectors inline#23933
jwnimmer-tri wants to merge 3 commits intoRobotLocomotion:masterfrom
jwnimmer-tri:autodiff-unit-vector-owned-unowned

Conversation

@jwnimmer-tri
Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri commented Dec 22, 2025

This introduces sparsity to the autodiff partials storage. If only one partial is non-zero, we can avoid using the heap.

Towards #17492.

Edit: This is on the back burner for now. From profiling, it looks like we should land some of the other optimizations first (at minimum, the move-specialization of matmul).


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added priority: low status: do not review release notes: none This pull request should not be mentioned in the release notes labels Dec 22, 2025
jwnimmer-tri

This comment was marked as resolved.

@jwnimmer-tri jwnimmer-tri added the status: defer ci CI will terminate early (saving the expense of unwanted builds) label Apr 25, 2026
This introduces sparsity to the autodiff partials storage. If only one
partial is non-zero, we can avoid using the heap.
@jwnimmer-tri jwnimmer-tri force-pushed the autodiff-unit-vector-owned-unowned branch from 7ae9803 to 2df5ff5 Compare April 25, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: low release notes: none This pull request should not be mentioned in the release notes status: defer ci CI will terminate early (saving the expense of unwanted builds) status: do not review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant