MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Deviator

Function Deviator

python/utils.py:94–95  ·  view source on GitHub ↗
(mat)

Source from the content-addressed store, hash-verified

92
93
94def Deviator(mat):
95 return mat - 1/mat.dims[0]*Trace(mat)*Id(mat.dims[0])
96
97
98def PyId(dim):

Callers 1

GetDiffOpFunction · 0.85

Calls 2

TraceFunction · 0.85
IdClass · 0.85

Tested by

no test coverage detected