replace SPARSE_CONSTRAINT_JACOBIAN with m.is_sparse#1223
Merged
thowell merged 3 commits intogoogle-deepmind:mainfrom Mar 18, 2026
Merged
replace SPARSE_CONSTRAINT_JACOBIAN with m.is_sparse#1223thowell merged 3 commits intogoogle-deepmind:mainfrom
thowell merged 3 commits intogoogle-deepmind:mainfrom
Conversation
9ad351b to
da65528
Compare
Collaborator
|
I investigated from newton side the effect of the sparse Jacobian: Results is that the new sparse version is 20-40% faster for both Newton and CG solver and for both pyramidal and elliptic cone friction. I am quite sure that it also gives us a lot of new opportunity for optimization. |
da65528 to
97a6a26
Compare
Collaborator
Author
|
minor bug fix, needed to zero the solver context newton solver hessian |
…acobian_is_sparse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
almost ready to enable the sparse constraint jacobian with
m.is_sparse(don't think these todos need to be block for this pr)
todos:
njmax_nnz#1221njmax * nvheuristic for estimating the number of non-zeros in constraint_jacobian #1241three humanoids
main eaa287f
this pr
m.is_sparse