Closed DMackRus closed 8 months ago
My previous response was incorrect. The matrices manipulated by MuJoCo routines are row-major (C convention) and the A, B, C, D matrices computed here are similarly row-major.
As a side note, there is a currently unexposed function "mjd_stepFD" which does use column-major, but then everything is transposed, in case you want column-major for some reason (though transpose is very cheap.)
Hello,
I am trying to fix some bugs in my code and want to make sure one of my assumptions is correct.
I think that the A, B, C and D matrices are ordered in memory column-wise rather than row-wise? I.e lets say you have a 4x4 A matrix The elements would be ordered like
0 4 9 13 1 5 10 14 2 6 11 15 3 7 12 16
Is this correct?