utv_operations#
Stateless tangent-stack reshuffles for the uniform tangent layer (UT3Tangent), uniform-fix 3b-1b.
The uniform mirror of the ragged tv_operations stack/unstack helpers, for the .data layout
(*supercores, shape, masks) with a leading mode index d and the stack at axes 1 ... A uniform
tangent’s variations carry the full K + C stack (tangent stack K outermost, frame stack C
inner); the frame carries only C. These functions split that stack into a Python tree of per-element
objects and recombine – a tree<->array conversion, NOT an axis permutation of the supercores. They are
the backend the UT3Tangent unstack_tangents / unstack_frame / stack_tangents / stack_frame
/ sum_tangents methods delegate to.
Varying ranks across the frame C stack are first-class here (the rank-sweep use case): the per-element
masks may differ, and utv_stack_frame_stack stacks frames of different ranks into one batch (the masks just
ride along). Uniform rank is required only across K (one shared frame = one tangent space), which
utv_stack_tangent_stack gets for free (the leaves share a frame). See
docs/uniform_ranks_and_varieties.md.
Functions#
|
Peel the tangent stack |
|
Stack a |
|
Peel the frame stack |
|
Stack a |
|
Sum the variations over the tangent stack |
|
Doubled-rank uniform Tucker tensor train representing a uniform frame-variations tangent vector. |
|
Retract a uniform frame-variations tangent vector onto the fixed-rank manifold. |
|
Additive (corewise) retraction: |
|
The raw coordinate (corewise) inner product of two uniform tangents' variations -- mask-applied and |
|
Orthogonally project the variations onto the gauge-satisfying subspace (the uniform mirror of |
|
Project the variations onto the gauge-satisfying subspace while PRESERVING the tangent vector (the |
|
Max violation of the gauge conditions for a uniform tangent vector, per stack element (the |
|
Orthogonal projection of a uniform Tucker tensor train onto the tangent space at an orthogonal frame |
|
Weighted (Grasedyck-Kramer) coordinate norm of a uniform tangent's variations: absorb the metric |
|
Weighted coordinate inner product |