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

Method NonZeroPattern

fem/coefficient.cpp:2978–2988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2976 }
2977
2978 virtual void NonZeroPattern (const class ProxyUserData & ud,
2979 FlatArray<FlatVector<AutoDiffDiff<1,NonZero>>> input,
2980 FlatVector<AutoDiffDiff<1,NonZero>> values) const override
2981 {
2982 auto in0 = input[0];
2983 AutoDiffDiff<1,NonZero> nz(false);
2984 for (int i = 0; i < dim1; i++)
2985 nz += in0[i];
2986 for (int i = 0; i < vecdim; i++)
2987 values(i) = nz;
2988 }
2989};
2990
2991

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected