BatchedTransformations
Documentation for BatchedTransformations.
BatchedTransformations.Composed
BatchedTransformations.Identity
BatchedTransformations.Inverse
BatchedTransformations.Transformation
BatchedTransformations.compose
BatchedTransformations.imaginary_to_quaternion_rotations
BatchedTransformations.transform
BatchedTransformations.Composed
— TypeComposed{Outer<:Transformation,Inner<:Transformation}
A Composed
contains two transformations outer
and inner
that are composed, where inner
gets applied first, and then outer
.. It can be constructed with compose(outer, inner)
or outer ∘ inner
, unless the compose
function is overloaded for the specific types.
BatchedTransformations.Identity
— TypeIdentity <: Transformation
BatchedTransformations.Inverse
— TypeInverse{T<:Transformation} <: Transformation
An Inverse
represents a lazy inverse of a Transformation
t.
inverse(t)
is a lazy inverse that defaults to inv(t)
when evaluated. transform(inverse(t), x)
is equivalent to inverse_transform(t, x)
. This allows for specialized inverse transform implementations that don't require the inverse to be computed explicitly.
BatchedTransformations.Transformation
— TypeTransformation
An abstract type whose concrete subtypes contain batches of transformations that can be applied to an array. A Transformation
t
can be applied to x
with transform(t, x)
, t * x
, and t(x).
BatchedTransformations.compose
— Methodcompose(t2, t1)
t2 ∘ t1
BatchedTransformations.imaginary_to_quaternion_rotations
— Methodimaginary_to_quaternion_rotations(bcd::AbstractArray, a²=1)
Convert a batch of imaginary vectors represented as an array of size 3xB to a batch of unit quaternions.
Taken from Algorithm 23 of AlphaFold 2 supplementary information.
BatchedTransformations.transform
— Methodtransform(t, x)
t * x
t(x)