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

Method Diff

fem/coefficient_matrix.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 shared_ptr<CoefficientFunction> Diff (const CoefficientFunction * var,
172 shared_ptr<CoefficientFunction> dir) const override
173 {
174 if (this == var) return dir;
175
176 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
177 return (-1) * thisptr * c1->Diff(var,dir) * thisptr;
178 }
179
180 shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override
181 {

Callers

nothing calls this directly

Calls 2

shared_from_thisMethod · 0.45
DiffMethod · 0.45

Tested by

no test coverage detected