From 0ac6c8b80bdc539857a286a9952617b1ce0bd24a Mon Sep 17 00:00:00 2001 From: nsrinivasan7 Date: Sun, 30 Nov 2014 08:32:35 -0500 Subject: [PATCH] Fixed the return value of Rot3 --- gtsam/geometry/Rot2.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtsam/geometry/Rot2.cpp b/gtsam/geometry/Rot2.cpp index 0133c9440..6ae559a62 100644 --- a/gtsam/geometry/Rot2.cpp +++ b/gtsam/geometry/Rot2.cpp @@ -64,8 +64,10 @@ Rot2& Rot2::normalize() { } /* ************************************************************************* */ -Matrix Rot2::matrix() const { - return (Matrix(2, 2) << c_, -s_, s_, c_).finished(); +Matrix2 Rot2::matrix() const { + Matrix2 rvalue; + rvalue << c_, -s_, s_, c_; + return rvalue; } /* ************************************************************************* */