overload == operator for GaussianBayesNet and VectorValues
parent
409938f4b4
commit
93c824c482
|
|
@ -82,6 +82,12 @@ namespace gtsam {
|
|||
/** Check equality */
|
||||
bool equals(const This& bn, double tol = 1e-9) const;
|
||||
|
||||
/// Check exact equality.
|
||||
friend bool operator==(const GaussianBayesNet& lhs,
|
||||
const GaussianBayesNet& rhs) {
|
||||
return lhs.isEqual(rhs);
|
||||
}
|
||||
|
||||
/// print graph
|
||||
void print(
|
||||
const std::string& s = "",
|
||||
|
|
|
|||
|
|
@ -260,6 +260,11 @@ namespace gtsam {
|
|||
/** equals required by Testable for unit testing */
|
||||
bool equals(const VectorValues& x, double tol = 1e-9) const;
|
||||
|
||||
/// Check exact equality.
|
||||
friend bool operator==(const VectorValues& lhs, const VectorValues& rhs) {
|
||||
return lhs.equals(rhs);
|
||||
}
|
||||
|
||||
/// @{
|
||||
/// @name Advanced Interface
|
||||
/// @{
|
||||
|
|
|
|||
Loading…
Reference in New Issue