Add internal utility for zeroing int vectors.
PiperOrigin-RevId: 562608956 Change-Id: I25ff1bbf9abf8fe2a636ed1d728d10ae862e04c9
This commit is contained in:
committed by
Copybara-Service
parent
1aa375ef9a
commit
9308e1d383
@@ -417,7 +417,7 @@ void mj_tendon(const mjModel* m, mjData* d) {
|
||||
|
||||
// clear Jacobian: sparse or dense
|
||||
if (issparse) {
|
||||
memset(rownnz, 0, nten*sizeof(int));
|
||||
mju_zeroInt(rownnz, nten);
|
||||
} else {
|
||||
mju_zero(J, nten*nv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user