Added access to the set of fixed variables (the variables involved in

linear marginal factors) from iSAM2
release/4.3a0
Stephen Williams 2013-08-10 17:15:56 +00:00
parent c33c6e2c70
commit 485624f8d6
1 changed files with 4 additions and 1 deletions

View File

@ -562,7 +562,7 @@ public:
* requested to be marginalized. Marginalization leaves a linear
* approximation of the marginal in the system, and the linearization points
* of any variables involved in this linear marginal become fixed. The set
* fixed variables will include any involved with the marginalized variables
* fixed variables will include any key involved with the marginalized variables
* in the original factors, and possibly additional ones due to fill-in.
*/
GTSAM_EXPORT void marginalizeLeaves(const FastList<Key>& leafKeys);
@ -619,6 +619,9 @@ public:
/** Access the nonlinear variable index */
GTSAM_EXPORT const VariableIndex& getVariableIndex() const { return variableIndex_; }
/** Access the nonlinear variable index */
GTSAM_EXPORT const FastSet<Key>& getFixedVariables() const { return fixedVariables_; }
size_t lastAffectedVariableCount;
size_t lastAffectedFactorCount;
size_t lastAffectedCliqueCount;