Commit f425fa52 authored by Patrick Jaap's avatar Patrick Jaap

SymmetricMatrix: Add traceMap

The trace map is a vector d, s.t. <d,a> = trace(A) where
A.data = a.

We use the isometry to reduce the computation to the data vectors.
parent 51ecd218
Pipeline #16282 canceled with stage
......@@ -48,6 +48,17 @@ public:
return id;
}
/** \brief return the trace map in vector representation
* the returned vector is such that
* <data,a> = trace(A) where A.data = a
*/
static constexpr Data traceMap()
{
// trace(A) = <Id,A>, therefore return data of Id
// use isometry!
return identityMatrix().data();
}
SymmetricMatrix<T,N>& operator=(const T& s)
{
data_ = s;
......
Markdown is supported
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