use std::map<Key, uint32_t> for Key-Dim maps

release/4.3a0
Varun Agrawal 2023-06-21 09:56:16 -04:00
parent fbf155d91e
commit 57311281fb
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ class CameraSet : public std::vector<CAMERA, Eigen::aligned_allocator<CAMERA>> {
// Get map from key to location in the new augmented Hessian matrix (the
// one including only unique keys).
std::map<Key, size_t> keyToSlotMap;
std::map<Key, uint32_t> keyToSlotMap;
for (size_t k = 0; k < nrUniqueKeys; k++) {
keyToSlotMap[hessianKeys[k]] = k;
}

View File

@ -29,7 +29,7 @@ namespace gtsam {
using namespace std;
/// Mapping between variable's key and its corresponding dimensionality
using KeyDimMap = std::map<Key, size_t>;
using KeyDimMap = std::map<Key, uint32_t>;
/*
* Iterates through every factor in a linear graph and generates a
* mapping between every factor key and it's corresponding dimensionality.