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

Method DiffJacobi

fem/coefficient_matrix.cpp:1024–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022 }
1023
1024 shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override
1025 {
1026 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
1027 if (cache.find(thisptr) != cache.end())
1028 return cache[thisptr];
1029
1030 if (this == var)
1031 return IdentityCF(this->Dimensions());
1032
1033 auto diffc1 = c1->DiffJacobi (var, cache);
1034 auto res = 0.5*(diffc1 + diffc1 -> TensorTranspose( 0, 1 ));
1035 cache[thisptr] = res;
1036 return res;
1037 }
1038 };
1039
1040

Callers

nothing calls this directly

Calls 6

IdentityCFFunction · 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