From 57ae0aac38b67e207d20b169d4a9e8f69efab4d1 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Fri, 16 Sep 2011 05:30:41 +0000 Subject: [PATCH] Added function to return the augmented information matrix --- gtsam/linear/HessianFactor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtsam/linear/HessianFactor.h b/gtsam/linear/HessianFactor.h index 6ed310016..04856c595 100644 --- a/gtsam/linear/HessianFactor.h +++ b/gtsam/linear/HessianFactor.h @@ -210,6 +210,9 @@ namespace gtsam { */ constBlock info(const_iterator j1, const_iterator j2) const { return info_(j1-begin(), j2-begin()); } + /** Return the full *augmented* information matrix, as described above */ + constBlock info() const { return info_.full(); } + /** Return the constant term \f$ f \f$ as described above * @return The constant term \f$ f \f$ */