From 8b94ea9656a216acd14d1e39f55ad653a51f5056 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 15 Oct 2023 23:23:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- g2o/core/auto_differentiation.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/g2o/core/auto_differentiation.h b/g2o/core/auto_differentiation.h index 2ffd93cc0..87bcacac1 100644 --- a/g2o/core/auto_differentiation.h +++ b/g2o/core/auto_differentiation.h @@ -158,7 +158,9 @@ class AutoDifferentiation { template using ADJacobianType = typename Eigen::Matrix 1 && VertexDimension == 1) ? Eigen::ColMajor : Eigen::RowMajor>; + (EdgeDimension > 1 && VertexDimension == 1) + ? Eigen::ColMajor + : Eigen::RowMajor>; //! helper for computing the error based on the functor in the edge static void computeError(Edge* that) {