Miscellaneous linting in src/engine.
PiperOrigin-RevId: 462415459 Change-Id: I6c79c592613c6b0a665af06faf945586bb6ba32d
This commit is contained in:
committed by
Copybara-Service
parent
eef473b1e1
commit
b849023069
@@ -262,16 +262,19 @@ void mju_mulMatVecSparse(mjtNum* res, const mjtNum* mat, const mjtNum* vec,
|
||||
const int* colind, const int* rowsuper) {
|
||||
// no supernodes, or no AVX
|
||||
#ifdef mjUSEAVX
|
||||
if (!rowsuper)
|
||||
if (!rowsuper) {
|
||||
#endif
|
||||
{
|
||||
|
||||
// regular sparse dot-product
|
||||
for (int r=0; r<nr; r++) {
|
||||
res[r] = mju_dotSparse(mat+rowadr[r], vec, rownnz[r], colind+rowadr[r]);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
#ifdef mjUSEAVX
|
||||
}
|
||||
#endif
|
||||
|
||||
// regular or supernode
|
||||
for (int r=0; r<nr; r++) {
|
||||
|
||||
Reference in New Issue
Block a user