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

Method Mult

linalg/python_linalg.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 AutoVector CreateColVector () const override { return CreateBaseVector(h, is_complex, 1); }
50
51 void Mult (const BaseVector & x, BaseVector & y) const override
52 {
53 shared_ptr<BaseVector> spx(const_cast<BaseVector*>(&x), &NOOP_Deleter);
54 py::object pyy = pyop * py::cast(spx);
55 auto pyv = py::cast<DynamicVectorExpression> (pyy);
56 pyv.AssignTo (1, y);
57 }
58
59 void MultAdd (double s, const BaseVector & x, BaseVector & y) const override
60 {

Callers 11

MultMethod · 0.45
MultAddMethod · 0.45
MultAddMethod · 0.45
SmoothBlockMethod · 0.45
MultMethod · 0.45
AssignToMethod · 0.45
AssignToFunction · 0.45
MultTransFunction · 0.45
MultFunction · 0.45
MultAddFunction · 0.45

Calls 1

AssignToMethod · 0.45

Tested by 2

MultMethod · 0.36
MultAddMethod · 0.36