Skip to content
Snippets Groups Projects
Commit 36b61f14 authored by Christian Godenschwager's avatar Christian Godenschwager
Browse files

[BUGFIX] Fixed return type of Matrx3<T>::trace()

parent 88d03cf5
No related merge requests found
......@@ -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];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment