| 145 | |
| 146 | |
| 147 | class 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 | |
| 161 | def GetSlice(self, index): |