add comment
parent
a9370dead4
commit
2a46762f8d
|
|
@ -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); }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue