From e854d15033eafe8e0323c969a787c85f2054aee6 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 1 Jan 2025 11:37:49 -0500 Subject: [PATCH] evaluate needed for correct test results --- gtsam/discrete/DiscreteTableConditional.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtsam/discrete/DiscreteTableConditional.h b/gtsam/discrete/DiscreteTableConditional.h index fefbea171..a8f187d2c 100644 --- a/gtsam/discrete/DiscreteTableConditional.h +++ b/gtsam/discrete/DiscreteTableConditional.h @@ -161,6 +161,13 @@ class GTSAM_EXPORT DiscreteTableConditional : public DiscreteConditional { /// Return the underlying TableFactor TableFactor table() const { return table_; } + using BaseConditional::evaluate; // HybridValues version + + /// Evaluate the conditional given the values. + virtual double evaluate(const Assignment& values) const override { + return table_.evaluate(values); + } + /** * @brief Create new conditional by maximizing over all * values with the same separator.