From 3125f6ec53a59381285a667bc124628c9a4636b4 Mon Sep 17 00:00:00 2001 From: Hauke Strasdat Date: Mon, 30 Oct 2023 19:57:38 -0700 Subject: [PATCH] fix: ceres jet compilation --- cpp/sophus/lie/impl/translation_factor_group_product.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/sophus/lie/impl/translation_factor_group_product.h b/cpp/sophus/lie/impl/translation_factor_group_product.h index bcb4cbbf..1e0c45ac 100644 --- a/cpp/sophus/lie/impl/translation_factor_group_product.h +++ b/cpp/sophus/lie/impl/translation_factor_group_product.h @@ -233,7 +233,7 @@ class TranslationFactorGroupProduct { mat.setZero(); mat.template topLeftCorner() = compactMatrix(params); - mat(kPointDim, kPointDim) = 1.0; + mat(kPointDim, kPointDim) = TScalar(1.0); return mat; }