@@ -97,12 +97,11 @@ TEST(QRMarginalizer, MatchesFreeFunctions)
9797 tg2.graph .optimize ();
9898
9999 // Marginalize x1 using free function
100- auto transaction_free =
101- vesta_constraints::marginalizeVariables (" test" , {tg1.x1 ->uuid ()}, tg1.graph );
100+ auto transaction_free = vesta_constraints::marginalizeVariables (" test" , { tg1.x1 ->uuid () }, tg1.graph );
102101
103102 // Marginalize x1 using QRMarginalizer
104103 vesta_constraints::QRMarginalizer marginalizer (false );
105- auto transaction_class = marginalizer.marginalize (" test" , {tg2.x1 ->uuid ()}, tg2.graph );
104+ auto transaction_class = marginalizer.marginalize (" test" , { tg2.x1 ->uuid () }, tg2.graph );
106105
107106 // Both should produce the same structure
108107 auto free_removed_vars_range = transaction_free.removedVariables ();
@@ -119,8 +118,7 @@ TEST(QRMarginalizer, MatchesFreeFunctions)
119118
120119 auto free_added = transaction_free.addedConstraints ();
121120 auto class_added = transaction_class.addedConstraints ();
122- EXPECT_EQ (std::distance (free_added.begin (), free_added.end ()),
123- std::distance (class_added.begin (), class_added.end ()));
121+ EXPECT_EQ (std::distance (free_added.begin (), free_added.end ()), std::distance (class_added.begin (), class_added.end ()));
124122
125123 // Apply both and re-optimize, results should be equivalent
126124 tg1.graph .update (transaction_free);
@@ -152,8 +150,8 @@ TEST(QRMarginalizer, FejFallbackMatchesNonFej)
152150 vesta_constraints::QRMarginalizer non_fej (false );
153151 vesta_constraints::QRMarginalizer fej (true );
154152
155- auto transaction1 = non_fej.marginalize (" test" , {tg1.x1 ->uuid ()}, tg1.graph );
156- auto transaction2 = fej.marginalize (" test" , {tg2.x1 ->uuid ()}, tg2.graph );
153+ auto transaction1 = non_fej.marginalize (" test" , { tg1.x1 ->uuid () }, tg1.graph );
154+ auto transaction2 = fej.marginalize (" test" , { tg2.x1 ->uuid () }, tg2.graph );
157155
158156 // Apply and re-optimize
159157 tg1.graph .update (transaction1);
@@ -207,8 +205,8 @@ TEST(QRMarginalizer, FejProducesDifferentJacobians)
207205 vesta_constraints::QRMarginalizer non_fej (false );
208206 vesta_constraints::QRMarginalizer fej (true );
209207
210- auto transaction1 = non_fej.marginalize (" test" , {tg1.x1 ->uuid ()}, tg1.graph );
211- auto transaction2 = fej.marginalize (" test" , {tg2.x1 ->uuid ()}, tg2.graph );
208+ auto transaction1 = non_fej.marginalize (" test" , { tg1.x1 ->uuid () }, tg1.graph );
209+ auto transaction2 = fej.marginalize (" test" , { tg2.x1 ->uuid () }, tg2.graph );
212210
213211 // The marginal constraints should differ because Jacobians are evaluated at different points
214212 // We verify this by applying both and checking that the optimized results diverge
@@ -258,7 +256,7 @@ TEST(QRMarginalizer, FejConsistency)
258256
259257 // Marginalize x1 with FEJ
260258 vesta_constraints::QRMarginalizer fej (true );
261- auto transaction = fej.marginalize (" test" , {tg.x1 ->uuid ()}, tg.graph );
259+ auto transaction = fej.marginalize (" test" , { tg.x1 ->uuid () }, tg.graph );
262260 tg.graph .update (transaction);
263261 tg.graph .optimize ();
264262
@@ -316,7 +314,7 @@ TEST(QRMarginalizer, RuntimeMeasurement)
316314 TestGraph warmup;
317315 warmup.graph .optimize ();
318316 vesta_constraints::QRMarginalizer m (false );
319- m.marginalize (" test" , {warmup.x1 ->uuid ()}, warmup.graph );
317+ m.marginalize (" test" , { warmup.x1 ->uuid () }, warmup.graph );
320318 }
321319
322320 constexpr int NUM_ITERATIONS = 100 ;
@@ -327,7 +325,7 @@ TEST(QRMarginalizer, RuntimeMeasurement)
327325 TestGraph t;
328326 t.graph .optimize ();
329327 vesta_constraints::QRMarginalizer m (false );
330- m.marginalize (" test" , {t.x1 ->uuid ()}, t.graph );
328+ m.marginalize (" test" , { t.x1 ->uuid () }, t.graph );
331329 }
332330
333331 auto end = std::chrono::high_resolution_clock::now ();
0 commit comments