From 1a591ace59541ea1a24b4b356d689afef5d465fc Mon Sep 17 00:00:00 2001 From: ShuangLiu1992 Date: Sat, 29 Apr 2023 22:10:36 +0100 Subject: [PATCH] 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) --- gtsam/linear/JacobianFactor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/linear/JacobianFactor.cpp b/gtsam/linear/JacobianFactor.cpp index 579f6cbc2..3cfb5ce7b 100644 --- a/gtsam/linear/JacobianFactor.cpp +++ b/gtsam/linear/JacobianFactor.cpp @@ -40,8 +40,8 @@ using namespace std; namespace gtsam { // Typedefs used in constructors below. -using Dims = std::vector; -using Pairs = std::vector>; +using Dims = std::vector; +using Pairs = std::vector>; /* ************************************************************************* */ JacobianFactor::JacobianFactor() :