Compute ``y += Ax`` or ``y += A^T x``. Args: x: Input Vector y: Output Vector transpose: if True, compute y += A^T x
(self, x: Vector[Scalar], y: Vector[Scalar], transpose: bool = False)
| 162 | return self._cpp_object.index_map(i) |
| 163 | |
| 164 | def mult(self, x: Vector[Scalar], y: Vector[Scalar], transpose: bool = False) -> None: |
| 165 | """Compute ``y += Ax`` or ``y += A^T x``. |
| 166 | |
| 167 | Args: |
| 168 | x: Input Vector |
| 169 | y: Output Vector |
| 170 | transpose: if True, compute y += A^T x |
| 171 | """ |
| 172 | if transpose: |
| 173 | self._cpp_object.multT(x._cpp_object, y._cpp_object) |
| 174 | else: |
| 175 | self._cpp_object.mult(x._cpp_object, y._cpp_object) |
| 176 | |
| 177 | def matmul(self, B): |
| 178 | """Compute matrix product ``A * B``, where `A` is this matrix. |