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

Function CWMult

fem/coefficient.cpp:3930–3936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3928
3929
3930shared_ptr<CoefficientFunction> CWMult (shared_ptr<CoefficientFunction> cf1,
3931 shared_ptr<CoefficientFunction> cf2)
3932{
3933 if (cf1->IsZeroCF() || cf2->IsZeroCF())
3934 return ZeroCF( cf1->Dimensions() );
3935 return BinaryOpCF (cf1, cf2, gen_mult, "*");
3936}
3937
3938template <>
3939shared_ptr<CoefficientFunction>

Callers 3

DiffMethod · 0.85
DiffMethod · 0.85
DiffMethod · 0.85

Calls 3

ZeroCFFunction · 0.85
DimensionsMethod · 0.80
IsZeroCFMethod · 0.45

Tested by

no test coverage detected