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

Method MultAdd

linalg/python_linalg.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void MultAdd (double s, const BaseVector & x, BaseVector & y) const override
60 {
61 shared_ptr<BaseVector> spx(const_cast<BaseVector*>(&x), &NOOP_Deleter);
62 py::object pyy = pyop * py::cast(spx);
63 auto pyv = py::cast<DynamicVectorExpression> (pyy);
64 pyv.AddTo (s, y);
65 }
66};
67
68

Callers 1

Calls 1

AddToMethod · 0.45

Tested by

no test coverage detected