MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / operator+=

Method operator+=

linalg/multivector.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 MultiVector MultiVector::operator+= (const MultiVectorExpr & expr)
35 {
36 if (Size() != expr.Size())
37 throw Exception("MultiVector assignment-add sizes mismatch, my size = "
38 + ToString(Size()) + " other size = " + ToString(expr.Size()));
39
40 Vector<double> ones(Size());
41 ones = 1;
42 expr.AddTo(ones, *this);
43 return *this;
44 }
45
46 MultiVector & MultiVector::operator-= (const MultiVectorExpr & expr)
47 {

Callers

nothing calls this directly

Calls 4

ToStringFunction · 0.85
SizeFunction · 0.70
SizeMethod · 0.45
AddToMethod · 0.45

Tested by

no test coverage detected