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

Method NonZeroPattern

fem/coefficient.cpp:3643–3653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3641 }
3642
3643 virtual void NonZeroPattern (const class ProxyUserData & ud,
3644 FlatVector<AutoDiffDiff<1,NonZero>> values) const override
3645 {
3646 Vector<AutoDiffDiff<1,NonZero>> va(3), vb(3);
3647 c1->NonZeroPattern (ud, va);
3648 c2->NonZeroPattern (ud, vb);
3649
3650 values(0) = va(1)*vb(2)+va(2)*vb(1);
3651 values(1) = va(2)*vb(0)+va(0)*vb(2);
3652 values(2) = va(0)*vb(1)+va(1)*vb(0);
3653 }
3654
3655 virtual void NonZeroPattern (const class ProxyUserData & ud,
3656 FlatArray<FlatVector<AutoDiffDiff<1,NonZero>>> input,

Callers

nothing calls this directly

Calls 1

NonZeroPatternMethod · 0.45

Tested by

no test coverage detected