@ and torch.matmul are identical, but if you leave out the .t(), you’ll change the direction of rotation (because .t() is the inverse rotation), I thought that the version with .t() might be the more canonical (because the convention would seem to be to multiply from the left but that doesn’t work with the batch dimension coming first). Combined this is the funny math geek comment in the code snippet.