From dc120298e58f7ec09755c29e51c39354cf97373d Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Tue, 13 Jul 2010 04:07:05 +0000 Subject: [PATCH] Moved Dimensions type to GaussianFactor as only used in linear inference. --- inference/Factor.h | 3 --- linear/GaussianFactor.h | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/inference/Factor.h b/inference/Factor.h index 19b981d4e..3d15f02e4 100644 --- a/inference/Factor.h +++ b/inference/Factor.h @@ -18,9 +18,6 @@ namespace gtsam { - /** A map from key to dimension, useful in various contexts */ - typedef SymbolMap Dimensions; - /** * A simple factor class to use in a factor graph. * diff --git a/linear/GaussianFactor.h b/linear/GaussianFactor.h index 0c5050c5c..b242dd368 100644 --- a/linear/GaussianFactor.h +++ b/linear/GaussianFactor.h @@ -28,6 +28,9 @@ namespace gtsam { class Ordering; + /** A map from key to dimension, useful in various contexts */ + typedef SymbolMap Dimensions; + /** * Base Class for a linear factor. * GaussianFactor is non-mutable (all methods const!). @@ -164,7 +167,6 @@ public: return (++(As_.begin()))->first; } - /** * Find all variables and their dimensions * @return The set of all variable/dimension pairs