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

Method NonZeroPattern

fem/coefficient.cpp:3131–3143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3129 */
3130
3131 virtual void NonZeroPattern (const class ProxyUserData & ud,
3132 FlatVector<AutoDiffDiff<1,NonZero>> values) const override
3133 {
3134 Vector<AutoDiffDiff<1,NonZero>> v1(dim1);
3135 c1->NonZeroPattern (ud, v1);
3136
3137 AutoDiffDiff<1,NonZero> sum(false);
3138 for (int i = 0; i < dim1; i++)
3139 sum += v1(i);
3140 values(0).Value() = sum.Value();
3141 values(0).DValue(0) = sum.DValue(0);
3142 values(0).DDValue(0) = sum.DValue(0) || sum.DDValue(0);
3143 }
3144
3145
3146 virtual void NonZeroPattern (const class ProxyUserData & ud,

Callers

nothing calls this directly

Calls 2

NonZeroPatternMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected