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

Construct a SkewMatrix from a FieldMatrix

parent c7aca880
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,12 @@ public:
: data_(v)
{}
/** \brief Constructor from a general matrix */
explicit SkewMatrix(const Dune::FieldMatrix<T,3,3>& m)
{
data_ = {m[2][1], m[0][2], m[1][0]};
}
SkewMatrix<T,3>& operator*=(const T& a)
{
data_ *= a;
......
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