Skip to content

Commit 0336114

Browse files
yuvaltassacopybara-github
authored andcommitted
Add restrict to output variable in mj_solveLDs.
PiperOrigin-RevId: 710358020 Change-Id: Ia63048161d7622f21954e98346b7ff4e37ecb342
1 parent e67599f commit 0336114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/engine_core_smooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ void mj_solveLD(const mjModel* m, mjtNum* restrict x, int n,
15781578

15791579
// in-place sparse backsubstitution: x = inv(L'*D*L)*x
15801580
// like mj_solveLD, but using the CSR representation of L
1581-
void mj_solveLDs(mjtNum* x, const mjtNum* qLDs, const mjtNum* qLDiagInv, int nv,
1581+
void mj_solveLDs(mjtNum* restrict x, const mjtNum* qLDs, const mjtNum* qLDiagInv, int nv,
15821582
const int* rownnz, const int* rowadr, const int* diag, const int* colind) {
15831583
// x <- L^-T x
15841584
for (int i=nv-2; i >= 0; i--) {

0 commit comments

Comments
 (0)