Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
SumExpr
Class · 0.70
Expr
Function · 0.70
Scale
Method · 0.45
Tested by
no test coverage detected