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

Function MakeSingleContractionCoefficientFunction

fem/coefficient.cpp:5568–5577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5566};
5567
5568shared_ptr<CoefficientFunction>
5569MakeSingleContractionCoefficientFunction (shared_ptr<CoefficientFunction> c1,
5570 shared_ptr<CoefficientFunction> vec,
5571 int index)
5572{
5573 auto res = make_shared<SingleContractionCoefficientFunction> (c1, vec, index);
5574 if (c1->IsZeroCF() || vec->IsZeroCF())
5575 return ZeroCF(res->Dimensions());
5576 return res;
5577}
5578
5579
5580

Callers 2

DiffMethod · 0.85

Calls 3

ZeroCFFunction · 0.85
DimensionsMethod · 0.80
IsZeroCFMethod · 0.45

Tested by

no test coverage detected