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

Method DiffJacobi

fem/coefficient.cpp:6262–6274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6260 }
6261
6262 shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override
6263 {
6264 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
6265 if (cache.find(thisptr) != cache.end())
6266 return cache[thisptr];
6267
6268 if (this == var)
6269 return IdentityCF(cf_then->Dimensions());
6270
6271 auto res = IfPos (cf_if, cf_then->DiffJacobi (var, cache), cf_else->DiffJacobi (var, cache));
6272 cache[thisptr] = res;
6273 return res;
6274 }
6275 };
6276
6277 extern

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected