(
self,
right: torch.Tensor,
)
| 236 | ) |
| 237 | |
| 238 | def __mul__( |
| 239 | self, |
| 240 | right: torch.Tensor, |
| 241 | ) -> Frame: |
| 242 | if not (isinstance(right, torch.Tensor)): |
| 243 | raise TypeError('The other multiplicand must be a Tensor') |
| 244 | |
| 245 | new_rots = self._r * right |
| 246 | new_trans = self._t * right[..., None] |
| 247 | |
| 248 | return Frame(new_rots, new_trans) |
| 249 | |
| 250 | def __rmul__( |
| 251 | self, |