Store index of diagonal element for C and D in mjData.

PiperOrigin-RevId: 704287869
Change-Id: I15d1faa0b5c3ff54721f692ec6329726456ec318
This commit is contained in:
Yuval Tassa
2024-12-09 08:00:29 -08:00
committed by Copybara-Service
parent b8344c191f
commit 3a14ada308
10 changed files with 67 additions and 18 deletions
+16
View File
@@ -5396,6 +5396,14 @@ STRUCTS: Mapping[str, StructDecl] = dict([
),
doc='reduced dof-dof: address of each row in C_colind (nv x 1)', # pylint: disable=line-too-long
),
StructFieldDecl(
name='C_diag',
type=PointerType(
inner_type=ValueType(name='int'),
),
doc='reduced dof-dof: index of diagonal element',
array_extent=('nv',),
),
StructFieldDecl(
name='C_colind',
type=PointerType(
@@ -5428,6 +5436,14 @@ STRUCTS: Mapping[str, StructDecl] = dict([
doc='dof-dof: address of each row in D_colind',
array_extent=('nv',),
),
StructFieldDecl(
name='D_diag',
type=PointerType(
inner_type=ValueType(name='int'),
),
doc='dof-dof: index of diagonal element',
array_extent=('nv',),
),
StructFieldDecl(
name='D_colind',
type=PointerType(