add new interface

release/4.3a0
Yong-Dian Jian 2010-11-08 06:21:35 +00:00
parent 55d98c7e69
commit 50a26c1dbb
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ public:
double *ptr(Index idx = 0) { return values_.data().begin() + varStarts_[idx] ; }
const double *ptr(Index idx = 0) const { return values_.data().begin() + varStarts_[idx] ; }
const Vector& values() const { return values_ ; }
Vector& values() { return values_ ; }
/* return the dimension spec of this vector*/
template <typename T>