fix return value from key to size_t.
parent
e74b737a66
commit
2791f2930b
|
|
@ -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