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

Method CalcMatrix

bem/diffopwithfactor.hpp:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 void CheckElement (const FiniteElement& fel) const override { }
32
33 void CalcMatrix (const FiniteElement & fel,
34 const BaseMappedIntegrationPoint & mip,
35 BareSliceMatrix<double,ColMajor> mat,
36 LocalHeap & lh) const override
37 {
38 FlatMatrix<double,ColMajor> hmat(diffop->Dim(), fel.GetNDof(), lh);
39 diffop -> CalcMatrix (fel, mip, hmat, lh);
40
41 auto dims = factor->Dimensions();
42 FlatMatrix<double> factorx(dims[0], dims[1], lh);
43 factor->Evaluate (mip, factorx.AsVector());
44
45 IntRange used = diffop->UsedDofs(fel);
46 mat.Cols(used) = factorx * hmat.Cols(used);
47 }
48
49 void CalcMatrix (const FiniteElement & fel,
50 const SIMD_BaseMappedIntegrationRule & mir,

Callers 2

CreateMatrixFMMMethod · 0.45
CalcElementMatrixMethod · 0.45

Calls 11

DimensionsMethod · 0.80
DimMethod · 0.45
GetNDofMethod · 0.45
EvaluateMethod · 0.45
AsVectorMethod · 0.45
UsedDofsMethod · 0.45
ColsMethod · 0.45
SizeMethod · 0.45
DimensionMethod · 0.45
RowsMethod · 0.45
ColMethod · 0.45

Tested by

no test coverage detected