From e175a95cb9914807f6d4556015f8ec80b03b0066 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 9 Feb 2022 22:38:11 -0500 Subject: [PATCH] add Eigen alignment macro to frobenius factor classes --- gtsam/slam/FrobeniusFactor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtsam/slam/FrobeniusFactor.h b/gtsam/slam/FrobeniusFactor.h index f17a9e4217..4a60c8ba02 100644 --- a/gtsam/slam/FrobeniusFactor.h +++ b/gtsam/slam/FrobeniusFactor.h @@ -54,6 +54,8 @@ class GTSAM_EXPORT FrobeniusPrior : public NoiseModelFactor1 { Eigen::Matrix vecM_; ///< vectorized matrix to approximate public: + EIGEN_MAKE_ALIGNED_OPERATOR_NEW + /// Constructor FrobeniusPrior(Key j, const MatrixNN& M, const SharedNoiseModel& model = nullptr) @@ -106,6 +108,8 @@ class GTSAM_EXPORT FrobeniusBetweenFactor : public NoiseModelFactor2 { enum { Dim = Rot::VectorN2::RowsAtCompileTime }; public: + EIGEN_MAKE_ALIGNED_OPERATOR_NEW + /// @name Constructor /// @{