Reduce flexedge_J size from nflexedge x nv to the effective sparse size.
PiperOrigin-RevId: 856290141 Change-Id: Ide297d1b6f0e3aa07e3e20bf9ab44b6501097695
This commit is contained in:
committed by
Copybara-Service
parent
cbc1136502
commit
e56b31e98f
@@ -438,9 +438,8 @@ void mj_jacSparseSimple(const mjModel* m, const mjData* d,
|
||||
int mj_jacDifPair(const mjModel* m, const mjData* d, int* chain,
|
||||
int b1, int b2, const mjtNum pos1[3], const mjtNum pos2[3],
|
||||
mjtNum* jac1p, mjtNum* jac2p, mjtNum* jacdifp,
|
||||
mjtNum* jac1r, mjtNum* jac2r, mjtNum* jacdifr) {
|
||||
mjtNum* jac1r, mjtNum* jac2r, mjtNum* jacdifr, int issparse) {
|
||||
int issimple = (m->body_simple[b1] && m->body_simple[b2]);
|
||||
int issparse = mj_isSparse(m);
|
||||
int NV = m->nv;
|
||||
|
||||
// skip if no DOFs
|
||||
|
||||
Reference in New Issue
Block a user