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

Method NonZeroPattern

fem/coefficient_matrix.cpp:1102–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100 */
1101
1102 virtual void NonZeroPattern (const class ProxyUserData & ud,
1103 FlatVector<AutoDiffDiff<1,NonZero>> values) const override
1104 {
1105 int hd = Dimensions()[0];
1106 c1->NonZeroPattern (ud, values);
1107 for (int i = 0; i < hd; i++)
1108 for (int j = 0; j < hd; j++)
1109 {
1110 int ii = i*hd+j;
1111 int jj = j*hd+i;
1112 values(ii) = values(ii)+values(jj); // logical or
1113 }
1114 }
1115
1116
1117 virtual void NonZeroPattern (const class ProxyUserData & ud,

Callers 5

NonZeroPatternMethod · 0.45
NonZeroPatternMethod · 0.45
NonZeroPatternMethod · 0.45
NonZeroPatternMethod · 0.45
NonZeroPatternMethod · 0.45

Calls 1

DimensionsFunction · 0.85

Tested by

no test coverage detected