Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
94
def
Deviator(mat):
95
return
mat - 1/mat.dims[0]*Trace(mat)*Id(mat.dims[0])
96
97
98
def
PyId(dim):
Callers
1
GetDiffOp
Function · 0.85
Calls
2
Trace
Function · 0.85
Id
Class · 0.85
Tested by
no test coverage detected