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

Function NormCF

fem/coefficient.cpp:4371–4380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4369
4370
4371 shared_ptr<CoefficientFunction> NormCF (shared_ptr<CoefficientFunction> coef)
4372 {
4373 if (coef->IsZeroCF())
4374 return ZeroCF(Array<int>());
4375
4376 if (coef->IsComplex())
4377 return make_shared<NormCoefficientFunctionC> (coef);
4378 else
4379 return make_shared<NormCoefficientFunction> (coef);
4380 }
4381
4382 shared_ptr<CoefficientFunction> EigCF (shared_ptr<CoefficientFunction> coef)
4383 {

Callers 1

DiffMethod · 0.85

Calls 3

ZeroCFFunction · 0.85
IsZeroCFMethod · 0.45
IsComplexMethod · 0.45

Tested by

no test coverage detected