Sparse ten_J and ten_J_colind memory

PiperOrigin-RevId: 868800229
Change-Id: Id83f9fd40dd9bece06fd99753e4202eea17ca884
This commit is contained in:
Taylor Howell
2026-02-11 12:44:56 -08:00
committed by Copybara-Service
parent 94e834bf4f
commit d011285380
21 changed files with 118 additions and 43 deletions
+7 -2
View File
@@ -1242,6 +1242,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
type=ValueType(name='mjtSize'),
doc='number of non-zeros in sparse actuator_moment matrix',
),
StructFieldDecl(
name='nJten',
type=ValueType(name='mjtSize'),
doc='number of non-zeros in sparse ten_J matrix',
),
StructFieldDecl(
name='ngravcomp',
type=ValueType(name='mjtSize'),
@@ -5829,7 +5834,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
inner_type=ValueType(name='int'),
),
doc='column indices in sparse Jacobian',
array_extent=('ntendon', 'nv'),
array_extent=('nJten',),
),
StructFieldDecl(
name='ten_J',
@@ -5837,7 +5842,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
inner_type=ValueType(name='mjtNum'),
),
doc='tendon Jacobian',
array_extent=('ntendon', 'nv'),
array_extent=('nJten',),
),
StructFieldDecl(
name='ten_length',