Add mju_dense2sparse to public API.

PiperOrigin-RevId: 691125900
Change-Id: Id9b7c739ee14bff2317168da258b1a3acbdafdbe
This commit is contained in:
Taylor Howell
2024-10-29 12:47:03 -07:00
committed by Copybara-Service
parent e835f139c8
commit f47840e57c
7 changed files with 109 additions and 3 deletions
+11 -1
View File
@@ -3414,6 +3414,16 @@ rotnew2old is 3-by-3, NULL means no rotation; flg_force specifies force or motio
Sparse math
^^^^^^^^^^^
.. _mju_dense2sparse:
mju_dense2sparse
~~~~~~~~~~~~~~~~
.. mujoco-include:: mju_dense2sparse
Convert matrix from dense to sparse.
nnz is size of res and colind, return 1 if too small, 0 otherwise.
.. _mju_sparse2dense:
mju_sparse2dense
@@ -4372,7 +4382,7 @@ mjs_setFrame
.. mujoco-include:: mjs_setFrame
Set element's enlcosing frame.
Set element's enclosing frame.
.. _mjs_resolveOrientation: