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

Function Axpy

linalg/multivector.cpp:129–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128 template <class T>
129 void Axpy (const Vector<T> & a, const MultiVector & x, BaseVector & y)
130 {
131 for (auto i : Range(a))
132 y += a(i) * *x[i];
133 }
134
135 template void Axpy (const Vector<double> & a, const MultiVector & x, BaseVector & y);
136 template void Axpy (const Vector<Complex> & a, const MultiVector & x, BaseVector & y);

Callers 1

Calls 1

RangeFunction · 0.70

Tested by

no test coverage detected