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

Method DiffJacobi

fem/coefficient.cpp:6838–6851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6836 }
6837
6838 virtual shared_ptr<CoefficientFunction>
6839 DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override
6840 {
6841 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
6842 if (cache.find(thisptr) != cache.end())
6843 return cache[thisptr];
6844
6845 if (var == this) return Compile (IdentityCF(Dimensions()), _real_compile, _maxderiv, _wait);
6846 auto diff_cf = cf->DiffJacobi (var, cache);
6847 // return Compile (diff_cf, false, 0, 0);
6848 auto res = Compile (diff_cf, _real_compile, _maxderiv, _wait, _keep_files);
6849 cache[thisptr] = res;
6850 return res;
6851 }
6852
6853
6854 Code GenerateProgram (int deriv, bool simd) const override

Callers

nothing calls this directly

Calls 7

CompileFunction · 0.85
IdentityCFFunction · 0.85
DimensionsFunction · 0.85
findMethod · 0.80
shared_from_thisMethod · 0.45
endMethod · 0.45
DiffJacobiMethod · 0.45

Tested by

no test coverage detected