From df0f597ed763d028b170690846f6eddcecf0b46f Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 16 Dec 2024 14:28:27 -0500 Subject: [PATCH] debug conversion --- gtsam/discrete/TableFactor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtsam/discrete/TableFactor.cpp b/gtsam/discrete/TableFactor.cpp index 3cfae56eca..cb60a98187 100644 --- a/gtsam/discrete/TableFactor.cpp +++ b/gtsam/discrete/TableFactor.cpp @@ -260,7 +260,9 @@ DecisionTreeFactor TableFactor::toDecisionTreeFactor() const { ss << keyValueForIndex(key, i); } // k will be in reverse key order already - uint64_t k = std::stoll(ss.str().c_str()); + uint64_t k; + ss >> k; + std::cout << "ss: " << ss.str() << ", k=" << k << std::endl; pair_table.push_back(std::make_pair(k, sparse_table_.coeff(i))); }