From 36b61f14ee0fa7059499ba7cb00a9d9aa19bfe0e Mon Sep 17 00:00:00 2001
From: Christian Godenschwager <christian.godenschwager@fau.de>
Date: Fri, 4 Aug 2017 12:34:07 +0200
Subject: [PATCH] [BUGFIX] Fixed return type of Matrx3<T>::trace()

---
 src/core/math/Matrix3.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/math/Matrix3.h b/src/core/math/Matrix3.h
index 8759d5562..31f129e7d 100644
--- a/src/core/math/Matrix3.h
+++ b/src/core/math/Matrix3.h
@@ -174,7 +174,7 @@ public:
                               inline bool                isZero()                                   const;
                               inline const Matrix3       getCholesky()                              const;
    template< typename Other > inline const Vector3<HIGH> solve( const Vector3<Other> &rhs )         const;
-                              inline real_t              trace()                                    const;
+                              inline Type                trace()                                    const;
    //@}
    //*******************************************************************************************************************
 
@@ -1322,13 +1322,13 @@ inline const Vector3<HIGH> Matrix3<Type>::solve( const Vector3<Other> &rhs ) con
 
 
 //**********************************************************************************************************************
-/*!\fn real_t Matrix3<Type>::trace() const
+/*!\fn Type Matrix3<Type>::trace() const
 // \brief Computes the trace of the matrix (sum of diagonal elements).
 //
 // \return The trace of the matrix.
 */
 template< typename Type >
-inline real_t Matrix3<Type>::trace() const
+inline Type Matrix3<Type>::trace() const
 {
    return v_[0] + v_[4] + v_[8];
 }
-- 
GitLab