diff --git a/gtsam/discrete/DiscreteFactorGraph.cpp b/gtsam/discrete/DiscreteFactorGraph.cpp index cd31c52a0..7e059c5e5 100644 --- a/gtsam/discrete/DiscreteFactorGraph.cpp +++ b/gtsam/discrete/DiscreteFactorGraph.cpp @@ -118,12 +118,7 @@ namespace gtsam { // } // } - /** - * @brief Multiply all the `factors`. - * - * @param factors The factors to multiply as a DiscreteFactorGraph. - * @return DiscreteFactor::shared_ptr - */ + /* ************************************************************************ */ DiscreteFactor::shared_ptr DiscreteFactorGraph::scaledProduct() const { // PRODUCT: multiply all factors gttic(product); diff --git a/gtsam/discrete/DiscreteFactorGraph.h b/gtsam/discrete/DiscreteFactorGraph.h index 162d9b748..f4d1a1833 100644 --- a/gtsam/discrete/DiscreteFactorGraph.h +++ b/gtsam/discrete/DiscreteFactorGraph.h @@ -150,8 +150,12 @@ class GTSAM_EXPORT DiscreteFactorGraph /** return product of all factors as a single factor */ DiscreteFactor::shared_ptr product() const; - /** Return product of all factors as a single factor, - * which is scaled by the max to prevent underflow + /** + * @brief Return product of all `factors` as a single factor, + * which is scaled by the max value to prevent underflow + * + * @param factors The factors to multiply as a DiscreteFactorGraph. + * @return DiscreteFactor::shared_ptr */ DiscreteFactor::shared_ptr scaledProduct() const;