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

Method MultAdd

linalg/special_matrix.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void PermutationMatrix :: MultAdd (double s, const BaseVector & x, BaseVector & y) const
68 {
69 auto fvx = x.FV<double>();
70 auto fvy = y.FV<double>();
71 for (size_t i = 0; i < ind.Size(); i++)
72 if(ind[i] != size_t(-1))
73 fvy(i) += s * fvx(ind[i]);
74 }
75
76 void PermutationMatrix :: MultTransAdd (double s, const BaseVector & x, BaseVector & y) const
77 {

Callers

nothing calls this directly

Calls 9

PSFunction · 0.85
FV<double>Method · 0.80
FV<Complex>Method · 0.80
BarrierMethod · 0.80
GetParallelStatusMethod · 0.80
SizeMethod · 0.45
RangeMethod · 0.45
MultAddMethod · 0.45
AddToMethod · 0.45

Tested by

no test coverage detected