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

Method EmbedAdd

linalg/sparsefactorization_interface.hpp:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75 template <typename T>
76 void EmbedAdd(FlatVector<T> dst, FlatVector<T> src, T scale) const {
77 for (size_t i : Range(embed))
78 if (embed[i] >= 0)
79 dst[i] += scale * src[embed[i]];
80 }
81
82 template <typename T>
83 shared_ptr<SparseMatrixTM<T>>

Callers 1

MultAddMethod · 0.80

Calls 1

RangeFunction · 0.70

Tested by

no test coverage detected