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

Method Diff

fem/coefficient.cpp:5715–5726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5713 }
5714
5715 shared_ptr<CoefficientFunction> Diff (const CoefficientFunction * var,
5716 shared_ptr<CoefficientFunction> dir) const override
5717 {
5718 if (this == var) return dir;
5719 Array<shared_ptr<CoefficientFunction>> ci_deriv;
5720 for (auto & cf : ci)
5721 if (cf)
5722 ci_deriv.Append (cf->Diff(var, dir));
5723 else
5724 ci_deriv.Append (nullptr);
5725 return MakeDomainWiseCoefficientFunction(std::move (ci_deriv), vb);
5726 }
5727
5728 shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, typename BASE::T_DJC & cache) const override
5729 {

Callers

nothing calls this directly

Calls 3

AppendMethod · 0.45
DiffMethod · 0.45

Tested by

no test coverage detected