add interface to access block matrix

release/4.3a0
Yong-Dian Jian 2010-11-23 15:27:23 +00:00
parent 2a46762f8d
commit 3ad9c9494e
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,10 @@ namespace gtsam {
ABlock getA(iterator variable) { return Ab_(variable - keys_.begin()); }
// direct indexing
constABlock getA(size_t idx) const { return Ab_(idx); }
ABlock getA(size_t idx) { return Ab_(idx); }
/** Return the dimension of the variable pointed to by the given key iterator
* todo: Remove this in favor of keeping track of dimensions with variables?
*/