Convert qLD to CSR format.

PiperOrigin-RevId: 728196818
Change-Id: I31bdf32e251293284426ed345019f27fd051a0e1
This commit is contained in:
Yuval Tassa
2025-02-18 07:13:49 -08:00
committed by Copybara-Service
parent 9fb4ec95f8
commit fb07e0d1f7
23 changed files with 160 additions and 159 deletions
+2 -1
View File
@@ -423,7 +423,8 @@ Get name of object with the specified mjtObj type and id, returns NULL if name n
.. mujoco-include:: mj_fullM
Convert sparse inertia matrix M into full (i.e. dense) matrix.
Convert sparse inertia matrix ``M`` into full (i.e. dense) matrix.
|br| ``dst`` must be of size ``nv x nv``, ``M`` must be of the same size as ``mjData.qM``.
.. _mj_mulM:
+5
View File
@@ -233,6 +233,11 @@ found, the function will return ``distmax`` and ``fromto``, if given, will be se
In order to determine whether a geom pair uses ``mjc_Convex``, inspect the table at the top of
`engine_collision_driver.c <https://github.com/google-deepmind/mujoco/blob/main/src/engine/engine_collision_driver.c>`__.
.. _mj_fullM:
Convert sparse inertia matrix ``M`` into full (i.e. dense) matrix.
|br| ``dst`` must be of size ``nv x nv``, ``M`` must be of the same size as ``mjData.qM``.
.. _mj_mulM:
This function multiplies the joint-space inertia matrix stored in mjData.qM by a vector. qM has a custom sparse format