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

Class MatVecExpr

python/__expr.py:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147class MatVecExpr(BinExpr):
148 def Scale(self, s):
149 return MatVecExpr(self.a.Scale(s), self.b)
150
151 def AssignTo(self, v, s = 1.0):
152 self.a.MultScale(s,self.b,v)
153
154 def AddTo(self, v, s = 1.0):
155 self.a.MultAdd(s,self.b,v)
156
157 def __str__(self):
158 return str(self.a) + ' * ' + str(self.b)
159
160
161def GetSlice(self, index):

Callers 3

__mul__Method · 0.85
ScaleMethod · 0.85
la.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected