From 2a46762f8d3dcae01aadf2a760de7bba9c37141d Mon Sep 17 00:00:00 2001 From: Yong-Dian Jian Date: Tue, 23 Nov 2010 15:08:11 +0000 Subject: [PATCH] add comment --- 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 142a80ed9..e7c906bbf 100644 --- a/gtsam/linear/VectorValues.h +++ b/gtsam/linear/VectorValues.h @@ -104,7 +104,7 @@ public: const Vector& values() const { return values_ ; } Vector& values() { return values_ ; } - /* return the dimension spec of this vector*/ + /* return the dimension spec of this vector, i.e. the dimension of each variable */ template std::vector getDimSpec() const { const Index n = this->size() ; @@ -115,6 +115,11 @@ public: return spec; } + /* get varStart */ + std::vector getVarStart() const { + return varStarts_ ; + } + /** Reserve space for a total number of variables and dimensionality */ void reserve(Index nVars, size_t totalDims) { values_.resize(std::max(totalDims, values_.size())); varStarts_.reserve(nVars+1); }