From 0a7db4129098004e2263561250ba00f6380f7de2 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 10 Jul 2024 18:54:25 -0400 Subject: [PATCH] print method for DiscreteKeys --- gtsam/discrete/discrete.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtsam/discrete/discrete.i b/gtsam/discrete/discrete.i index 0deeb8033..5eacb3634 100644 --- a/gtsam/discrete/discrete.i +++ b/gtsam/discrete/discrete.i @@ -14,6 +14,9 @@ class DiscreteKeys { bool empty() const; gtsam::DiscreteKey at(size_t n) const; void push_back(const gtsam::DiscreteKey& point_pair); + void print(const std::string& s = "", + const gtsam::KeyFormatter& keyFormatter = + gtsam::DefaultKeyFormatter) const; }; // DiscreteValues is added in specializations/discrete.h as a std::map @@ -162,7 +165,6 @@ virtual class DiscreteDistribution : gtsam::DiscreteConditional { gtsam::DefaultKeyFormatter) const; double operator()(size_t value) const; std::vector pmf() const; - size_t argmax() const; }; #include