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

Method DiffJacobi

fem/coefficient.cpp:2051–2066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2049 }
2050
2051 shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override
2052 {
2053 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
2054 if (cache.find(thisptr) != cache.end())
2055 return cache[thisptr];
2056
2057 if (this == var)
2058 {
2059 if (this -> Dimensions().Size() == 0)
2060 return make_shared<ConstantCoefficientFunction>(1);
2061 return IdentityCF(this->Dimensions());
2062 }
2063 auto res = scal * c1->DiffJacobi(var, cache);
2064 cache[thisptr] = res;
2065 return res;
2066 }
2067
2068};
2069

Callers

nothing calls this directly

Calls 7

IdentityCFFunction · 0.85
findMethod · 0.80
DimensionsMethod · 0.80
shared_from_thisMethod · 0.45
endMethod · 0.45
SizeMethod · 0.45
DiffJacobiMethod · 0.45

Tested by

no test coverage detected