From 007ca72efec6539e6b1a098a5364b1239c4a2f75 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 15 Aug 2011 20:24:02 +0000 Subject: [PATCH] Make Permutation::equals compatible with unit tests (added tolerance argument) --- gtsam/inference/Permutation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/inference/Permutation.h b/gtsam/inference/Permutation.h index 46859b718..4974d22b7 100644 --- a/gtsam/inference/Permutation.h +++ b/gtsam/inference/Permutation.h @@ -113,7 +113,7 @@ public: void print(const std::string& str = "Permutation: ") const; /** Equals */ - bool equals(const Permutation& rhs) const { return rangeIndices_ == rhs.rangeIndices_; } + bool equals(const Permutation& rhs, double tol=0.0) const { return rangeIndices_ == rhs.rangeIndices_; } /** * Syntactic sugar for accessing another container through a permutation.