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)
release/4.3a0
ShuangLiu1992 2023-04-29 22:12:13 +01:00 committed by Fan Jiang
parent 1a591ace59
commit 84a44eeca1
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ using namespace std;
namespace gtsam {
// Typedefs used in constructors below.
using Dims = std::vector<Eigen::Index>;
using Dims = std::vector<Key>;
/* ************************************************************************* */
void HessianFactor::Allocate(const Scatter& scatter) {