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

Function MultAdd

linalg/multivector.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138 template <class T>
139 void MultAdd (const class BaseMatrix & mat, FlatVector<T> s, const MultiVector & x, MultiVector & y)
140 {
141 if constexpr (std::is_same<T,double>::value)
142 {
143 mat.MultAdd (s, x, y);
144 }
145 else
146 for (auto i : Range(x.Size()))
147 mat.MultAdd (s(i), *x[i], *y[i]);
148 }
149
150 template void MultAdd (const BaseMatrix & mat, FlatVector<double> s, const MultiVector & x, MultiVector & y);
151 template void MultAdd (const BaseMatrix & mat, FlatVector<Complex> s, const MultiVector & x, MultiVector & y);

Callers

nothing calls this directly

Calls 3

RangeFunction · 0.70
MultAddMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected