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

Method Diff

fem/coefficient_stdmath.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47 template <> shared_ptr<CoefficientFunction>
48 cl_UnaryOpCF<GenericSqrt>::Diff(const CoefficientFunction * var,
49 shared_ptr<CoefficientFunction> dir) const
50 {
51 if (this == var) return dir;
52 return CWMult (0.5/sqrt(c1), c1->Diff(var, dir));
53 }
54
55 template <> shared_ptr<CoefficientFunction>
56 cl_UnaryOpCF<GenericSqrt>::DiffJacobi(const CoefficientFunction * var, T_DJC & cache) const

Callers

nothing calls this directly

Calls 6

CWMultFunction · 0.85
UnaryOpCFFunction · 0.85
GenericCosClass · 0.85
GenericSqrtClass · 0.85
sqrtFunction · 0.70
expFunction · 0.70

Tested by

no test coverage detected