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

Method NonZeroPattern

fem/coefficient_matrix.hpp:519–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 { return Array<shared_ptr<CoefficientFunction>>({ c1, c2 }); }
518
519 virtual void NonZeroPattern (const class ProxyUserData & ud,
520 FlatVector<AutoDiffDiff<1,NonZero>> values) const override
521 {
522 size_t dim1 = c1->Dimension();
523 Vector<AutoDiffDiff<1,NonZero>> va(dim1);
524 c1->NonZeroPattern (ud, va);
525 c2->NonZeroPattern (ud, values);
526
527 for (size_t i = 0, ii=0; i < dim1; i++)
528 for (size_t j = 0; j < numcols; j++, ii++)
529 values(ii) *= va(i);
530 }
531
532
533 virtual void NonZeroPattern (const class ProxyUserData & ud,

Callers

nothing calls this directly

Calls 2

DimensionMethod · 0.45
NonZeroPatternMethod · 0.45

Tested by

no test coverage detected