(tx, ty, **kwargs)
| 82 | return torch.stack(elems, dim=-1).reshape(ref[0].shape + (len(rows), -1)) |
| 83 | |
| 84 | def translate2d(tx, ty, **kwargs): |
| 85 | return matrix( |
| 86 | [1, 0, tx], |
| 87 | [0, 1, ty], |
| 88 | [0, 0, 1], |
| 89 | **kwargs) |
| 90 | |
| 91 | def translate3d(tx, ty, tz, **kwargs): |
| 92 | return matrix( |
no test coverage detected