From 64d0a3b4dc21aebe76ea7cdbe77341b0628c5fb4 Mon Sep 17 00:00:00 2001 From: dellaert Date: Mon, 3 Nov 2014 09:27:05 +0100 Subject: [PATCH] equals and print for Matrix types --- gtsam/base/Manifold.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gtsam/base/Manifold.h b/gtsam/base/Manifold.h index 4fe6c9d99..27fb0f603 100644 --- a/gtsam/base/Manifold.h +++ b/gtsam/base/Manifold.h @@ -140,6 +140,18 @@ struct zero > : public boost::integral_cons } }; +// These functions should maybe be wrapped into a struct object? +template +bool equals(const Eigen::DenseBase& A, const Eigen::DenseBase& B, + double tol) { + return equal_with_abs_tol(A, B, tol); +} + +template +void print(const Eigen::DenseBase& A, const std::string& str) { + print(A,str); +} + template struct is_chart : public boost::false_type {}; } // \ namespace traits