Merge pull request #1096 from borglab/fix/FrobeniusFactor

Frobenius Factor Eigen Fix
release/4.3a0
Varun Agrawal 2022-02-10 12:42:53 -05:00 committed by GitHub
commit a5bee157ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,8 @@ class GTSAM_EXPORT FrobeniusPrior : public NoiseModelFactor1<Rot> {
Eigen::Matrix<double, Dim, 1> vecM_; ///< vectorized matrix to approximate Eigen::Matrix<double, Dim, 1> vecM_; ///< vectorized matrix to approximate
public: public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
/// Constructor /// Constructor
FrobeniusPrior(Key j, const MatrixNN& M, FrobeniusPrior(Key j, const MatrixNN& M,
const SharedNoiseModel& model = nullptr) const SharedNoiseModel& model = nullptr)
@ -106,6 +108,8 @@ class GTSAM_EXPORT FrobeniusBetweenFactor : public NoiseModelFactor2<Rot, Rot> {
enum { Dim = Rot::VectorN2::RowsAtCompileTime }; enum { Dim = Rot::VectorN2::RowsAtCompileTime };
public: public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
/// @name Constructor /// @name Constructor
/// @{ /// @{