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

Function Grad

python/utils.py:49–57  ·  view source on GitHub ↗

Jacobi-matrix

(func)

Source from the content-addressed store, hash-verified

47 # return func.Deriv()
48
49def Grad(func):
50 """ Jacobi-matrix"""
51 # now in C++ code
52 # if "normal vector" in str(func):
53 # return specialcf.Weingarten(func.dim)
54 try:
55 return func.Operator("Grad")
56 except:
57 return grad(func).trans
58
59
60

Callers 8

GetDiffOpFunction · 0.85
test_einsum.pyFile · 0.85
TestFunction · 0.85
test_code_genFunction · 0.85
AddArtificialDiffusionFunction · 0.85
elasticity.pyFile · 0.85
symbolic.pyFile · 0.85

Calls 2

gradFunction · 0.85
OperatorMethod · 0.45

Tested by 3

TestFunction · 0.68
test_code_genFunction · 0.68