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

Method Diff

fem/coefficient_matrix.cpp:424–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 }
423
424 shared_ptr<CoefficientFunction>
425 Diff(const CoefficientFunction *var,
426 shared_ptr<CoefficientFunction> dir) const override
427 {
428 if (this == var)
429 return c1->Diff(c1.get(), dir);
430
431 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
432 return (-1) * thisptr * c1->Diff(var, dir) * thisptr;
433 }
434
435 shared_ptr<CoefficientFunction> DiffJacobi(const CoefficientFunction *var,
436 T_DJC &cache) const override

Callers

nothing calls this directly

Calls 3

DiffMethod · 0.45
getMethod · 0.45
shared_from_thisMethod · 0.45

Tested by

no test coverage detected