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

Method __sub__

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

Source from the content-addressed store, hash-verified

48 return SumExpr(self, Expr(other))
49
50 def __sub__(self, other):
51 return SumExpr(self, Expr(other).Scale(-1))
52
53 def __neg__(self):
54 return self.Scale(-1)

Callers

nothing calls this directly

Calls 3

SumExprClass · 0.70
ExprFunction · 0.70
ScaleMethod · 0.45

Tested by

no test coverage detected