MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / qinverse

Function qinverse

common/camera.py:31–38  ·  view source on GitHub ↗
(q, inplace=False)

Source from the content-addressed store, hash-verified

29
30
31def qinverse(q, inplace=False):
32 if inplace:
33 q[..., 1:] *= -1
34 return q
35 else:
36 w = q[..., :1]
37 xyz = q[..., 1:]
38 return torch.cat((w, -xyz), dim=len(q.shape) - 1)
39
40
41def wrap(func, *args, unsqueeze=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected