Fix JacobianFactor and HessianFactor on platforms where Eigen::Index is not the same size as gtsam::Key

Fix JacobianFactor and HessianFactor on platforms where Eigen::Index is not the same size as gtsam::Key

Eigen::Index is defined as std::ptrdiff_t (size_t), which is not always the same size as gtsam::Key (uint64)
release/4.3a0
ShuangLiu1992 2023-04-29 22:10:36 +01:00 committed by Fan Jiang
parent 4abef9248e
commit 1a591ace59
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ using namespace std;
namespace gtsam {
// Typedefs used in constructors below.
using Dims = std::vector<Eigen::Index>;
using Pairs = std::vector<std::pair<Eigen::Index, Matrix>>;
using Dims = std::vector<Key>;
using Pairs = std::vector<std::pair<Key, Matrix>>;
/* ************************************************************************* */
JacobianFactor::JacobianFactor() :