From 8b968c14018caab9daa5838a03d0c57829c6eb21 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 6 Nov 2024 09:08:16 -0500 Subject: [PATCH] use visitWith to not create a new tree --- gtsam/discrete/DecisionTreeFactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/discrete/DecisionTreeFactor.cpp b/gtsam/discrete/DecisionTreeFactor.cpp index 45574f641..4e7a7342e 100644 --- a/gtsam/discrete/DecisionTreeFactor.cpp +++ b/gtsam/discrete/DecisionTreeFactor.cpp @@ -239,7 +239,7 @@ namespace gtsam { }; // Go through the tree - this->apply(op); + this->visitWith(op); return probs; }