Skip to content
Snippets Groups Projects
Commit 5541cb79 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Specialize the FieldTraits class for Quaternions

This is needed to be able to multiply FieldMatrices with Quaternions.
parent 05a783f8
No related branches found
No related tags found
No related merge requests found
......@@ -162,4 +162,15 @@ public:
};
namespace Dune
{
/** \brief Specizalization needed to allow certain forms of matrix--quaternion multiplications */
template< class T >
struct FieldTraits< Quaternion<T> >
{
typedef typename FieldTraits<T>::field_type field_type;
typedef typename FieldTraits<T>::real_type real_type;
};
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment