From bcfd0ec3a9e2c7b8d7322942e82fb55caf1f069d Mon Sep 17 00:00:00 2001 From: p-zach Date: Wed, 16 Apr 2025 16:28:17 -0400 Subject: [PATCH] Documentation --- gtsam/inference/VariableIndex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/inference/VariableIndex.h b/gtsam/inference/VariableIndex.h index 9885cb1cb..ccc5a11c1 100644 --- a/gtsam/inference/VariableIndex.h +++ b/gtsam/inference/VariableIndex.h @@ -83,9 +83,9 @@ class GTSAM_EXPORT VariableIndex { /// The number of nonzero blocks, i.e. the number of variable-factor entries size_t nEntries() const { return nEntries_; } - /// Access a list of factors by variable + /// Access a list of factors by variable without checking for existence const FactorIndices& operator[](Key variable) const; - + /// Access a list of factors by variable const FactorIndices& at(Key variable) const; /// Return true if no factors associated with a variable