add comment

release/4.3a0
Yong-Dian Jian 2010-11-23 15:08:11 +00:00
parent a9370dead4
commit 2a46762f8d
1 changed files with 6 additions and 1 deletions

View File

@ -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 <typename T>
std::vector<T> getDimSpec() const {
const Index n = this->size() ;
@ -115,6 +115,11 @@ public:
return spec;
}
/* get varStart */
std::vector<size_t> 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); }