From 84a44eeca14c3a1a4d2d79516845ced603dd77ac Mon Sep 17 00:00:00 2001 From: ShuangLiu1992 Date: Sat, 29 Apr 2023 22:12:13 +0100 Subject: [PATCH] Update HessianFactor.cpp 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/HessianFactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/HessianFactor.cpp b/gtsam/linear/HessianFactor.cpp index 376509069..8980b5030 100644 --- a/gtsam/linear/HessianFactor.cpp +++ b/gtsam/linear/HessianFactor.cpp @@ -38,7 +38,7 @@ using namespace std; namespace gtsam { // Typedefs used in constructors below. -using Dims = std::vector; +using Dims = std::vector; /* ************************************************************************* */ void HessianFactor::Allocate(const Scatter& scatter) {