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

Class SumExpr

python/__expr.py:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131class SumExpr(BinExpr):
132 def Scale(self, s):
133 return SumExpr(self.a.Scale(s), self.b.Scale(s))
134
135 def AssignTo(self, v, s = 1.0):
136 self.a.AssignTo(v, s)
137 self.b.AddTo(v, s)
138
139 def AddTo(self, v, s = 1.0):
140 self.a.AddTo(v, s)
141 self.b.AddTo(v, s)
142
143 def __str__(self):
144 return str(self.a) + ' + ' + str(self.b)
145
146
147class MatVecExpr(BinExpr):

Callers 3

__add__Method · 0.70
__sub__Method · 0.70
ScaleMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected