updated transpose signature for Rot3Q

release/4.3a0
Varun Agrawal 2020-03-18 10:44:21 -04:00
parent 510d5c500c
commit 359bc161a6
1 changed files with 3 additions and 5 deletions

View File

@ -79,11 +79,9 @@ namespace gtsam {
} }
/* ************************************************************************* */ /* ************************************************************************* */
// TODO: Could we do this? It works in Rot3M but not here, probably because const Eigen::Transpose<const Matrix3> Rot3::transpose() const {
// here we create an intermediate value by calling matrix() // `.eval()` to avoid aliasing effect due to transpose (allows compilation).
// const Eigen::Transpose<const Matrix3> Rot3::transpose() const { return matrix().eval().transpose();
Matrix3 Rot3::transpose() const {
return matrix().transpose();
} }
/* ************************************************************************* */ /* ************************************************************************* */