tomodrgn.lie_tools#
Tools for dealing with SO(3) group and algebra Adapted from pimdh/lie-vae All functions are pytorch-ified
Functions
Map batch of SO(3) matrices to quaternions. |
|
Map batch of SO(3) matrices to s2s2 representation as first two basis vectors, concatenated as Bx6 |
|
Numerically stable logsumexp. |
|
Map a point in R^N to the tangent space at the identity, i.e. to the Lie Algebra. |
|
Normalizes q and maps to group matrix. |
|
Generate random rotations as SO3 matrices |
|
Generate random rotations as quaternions |
|
Normalize 2 3-vectors. |
|