Skip to content

Commit

Permalink
exact equality
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert committed Jan 22, 2022
1 parent f2a65a0 commit 600f05a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gtsam/linear/GaussianFactorGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ namespace gtsam {

/// @}

/// Check exact equality.
friend bool operator==(const GaussianFactorGraph& lhs,
const GaussianFactorGraph& rhs) {
return lhs.isEqual(rhs);
}

/** Add a factor by value - makes a copy */
void add(const GaussianFactor& factor) { push_back(factor.clone()); }

Expand Down Expand Up @@ -414,7 +420,7 @@ namespace gtsam {
*/
GTSAM_EXPORT bool hasConstraints(const GaussianFactorGraph& factors);

/****** Linear Algebra Opeations ******/
/****** Linear Algebra Operations ******/

///* matrix-vector operations */
//GTSAM_EXPORT void residual(const GaussianFactorGraph& fg, const VectorValues &x, VectorValues &r);
Expand Down

0 comments on commit 600f05a

Please sign in to comment.