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

Method __mul__

python/__expr.py:90–96  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

88 self.a.MultTransAdd(s*self.s*x.s,x.a,y.a)
89
90 def __mul__(self, other):
91 if isinstance(Expr(other), VecExpr):
92 return MatVecExpr(self, Expr(other))
93 try:
94 return self.Scale(float(other))
95 except:
96 return None
97
98 def __len__(self):
99 return self.a.Height()

Callers

nothing calls this directly

Calls 3

MatVecExprClass · 0.85
ExprFunction · 0.70
ScaleMethod · 0.45

Tested by

no test coverage detected