From 0bf987f866bc0f0dbd94c72df5e4f6359ee84a35 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Fri, 28 Oct 2011 19:05:45 +0000 Subject: [PATCH] commenting insert --- gtsam/linear/VectorValues.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtsam/linear/VectorValues.h b/gtsam/linear/VectorValues.h index bc7bf036c..445b659e5 100644 --- a/gtsam/linear/VectorValues.h +++ b/gtsam/linear/VectorValues.h @@ -124,7 +124,12 @@ namespace gtsam { /** Reference a variable by index. */ const SubVector& operator[](Index j) const { checkExists(j); return maps_[j]; } // - /** Insert a new variable (causes reallocation). */ + /** Insert a vector \c value with index \c j. + * Causes reallocation. Can be used to insert values in any order, but + * throws an invalid_argument exception if the index \j is already used. + * @param value The vector to be inserted. + * @param j The index with which the value will be associated. + */ void insert(Index j, const Vector& value); // /** Assignment */