diff --git a/gtsam/hybrid/HybridBayesNet.h b/gtsam/hybrid/HybridBayesNet.h index 263922636..3e07c71ce 100644 --- a/gtsam/hybrid/HybridBayesNet.h +++ b/gtsam/hybrid/HybridBayesNet.h @@ -268,10 +268,6 @@ class GTSAM_EXPORT HybridBayesNet : public BayesNet { /// @} private: - /// Helper method to compute the max product assignment - /// given a DiscreteFactorGraph - DiscreteValues discreteMaxProduct(const DiscreteFactorGraph &dfg) const; - #if GTSAM_ENABLE_BOOST_SERIALIZATION /** Serialization function */ friend class boost::serialization::access; diff --git a/gtsam/hybrid/HybridBayesTree.h b/gtsam/hybrid/HybridBayesTree.h index 06d880f02..ec29f7b1e 100644 --- a/gtsam/hybrid/HybridBayesTree.h +++ b/gtsam/hybrid/HybridBayesTree.h @@ -115,6 +115,10 @@ class GTSAM_EXPORT HybridBayesTree : public BayesTree { /// @} private: + /// Helper method to compute the max product assignment + /// given a DiscreteFactorGraph + DiscreteValues discreteMaxProduct(const DiscreteFactorGraph& dfg) const; + #if GTSAM_ENABLE_BOOST_SERIALIZATION /** Serialization function */ friend class boost::serialization::access;