(
Ts: Sequence[Frame],
dim: int,
)
| 364 | |
| 365 | @staticmethod |
| 366 | def cat( |
| 367 | Ts: Sequence[Frame], |
| 368 | dim: int, |
| 369 | ) -> Frame: |
| 370 | rots = Rotation.cat([T._r for T in Ts], dim) |
| 371 | trans = torch.cat([T._t for T in Ts], dim=dim if dim >= 0 else dim - 1) |
| 372 | |
| 373 | return Frame(rots, trans) |
| 374 | |
| 375 | def apply_rot_fn(self, fn: Callable[[Rotation], Rotation]) -> Frame: |
| 376 | return Frame(fn(self._r), self._t) |
no test coverage detected