size() should return size_t not Key
parent
4681c05063
commit
416111b0ef
|
|
@ -135,7 +135,7 @@ namespace gtsam {
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
/** Number of variables stored. */
|
/** Number of variables stored. */
|
||||||
Key size() const { return values_.size(); }
|
size_t size() const { return values_.size(); }
|
||||||
|
|
||||||
/** Return the dimension of variable \c j. */
|
/** Return the dimension of variable \c j. */
|
||||||
size_t dim(Key j) const { return at(j).rows(); }
|
size_t dim(Key j) const { return at(j).rows(); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue