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

Method DiffJacobi

fem/coefficient.cpp:1939–1954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1937 }
1938
1939 shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override
1940 {
1941 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
1942 if (cache.find(thisptr) != cache.end())
1943 return cache[thisptr];
1944
1945 if (this == var)
1946 {
1947 if (this -> Dimensions().Size() == 0)
1948 return make_shared<ConstantCoefficientFunction>(1);
1949 return IdentityCF(this->Dimensions());
1950 }
1951 auto res = scal * c1->DiffJacobi(var, cache);
1952 cache[thisptr] = res;
1953 return res;
1954 }
1955};
1956
1957

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