Rename efc_diagApprox -> efc_diagA.

The field now stores either an approximate or exact diagonal of the constraint matrix A, so the name is made more general.

PiperOrigin-RevId: 924244954
Change-Id: I62b2f76531fb88b7b3bf96e6769940197596702b
This commit is contained in:
Yuval Tassa
2026-05-31 04:53:36 -07:00
committed by Copybara-Service
parent cd6db9ebe2
commit 4548e81e4d
13 changed files with 32 additions and 28 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ TEST_F(CoreConstraintTest, EqualityBodySite) {
ASSERT_GT(data->time, time) << "Divergence detected";
}
int nefc_site = data->nefc;
std::vector<mjtNum> dA = AsVector(data->efc_diagApprox, nefc_site);
std::vector<mjtNum> dA = AsVector(data->efc_diagA, nefc_site);
// reset
mj_resetData(model, data);
@@ -163,7 +163,7 @@ TEST_F(CoreConstraintTest, EqualityBodySite) {
// compare
EXPECT_EQ(nefc_site, data->nefc);
EXPECT_THAT(AsVector(data->efc_diagApprox, data->nefc),
EXPECT_THAT(AsVector(data->efc_diagA, data->nefc),
Pointwise(MjNear(1e-12, 1e-4), dA));
mj_deleteData(data);