25 #include "WTensorTrace.h"
34 return tensor( 0, 0 ) + tensor( 1, 1 ) + tensor( 2, 2 );
Interface to compute various measures on tensors.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
Implements a symmetric tensor that has the same number of components in every direction.
virtual double tensorToScalar(const WVector3d &evals, const WTensorSym< 2, 3, float > &tensor)
Actual computation is done inhere.
WTensorTrace()
Constructs new TensorTrace object.