Remove mj_jacDifPairCount by incorporating the counting into mj_jacDifPair

PiperOrigin-RevId: 884366070
Change-Id: I7490ca205a315bc661414e32c91ad1ec753a8fe7
This commit is contained in:
Yuval Tassa
2026-03-16 04:44:06 -07:00
committed by Copybara-Service
parent 50dfc255b8
commit 55f5ac0a1d
2 changed files with 11 additions and 21 deletions
+5
View File
@@ -456,6 +456,11 @@ int mj_jacDifPair(const mjModel* m, const mjData* d, int* chain,
return 0;
}
// count-only mode
if (!jacdifp && !jacdifr && !jac1p && !jac1r) {
return NV;
}
// sparse case
if (issparse) {
// simple: fast processing