UniformManifoldGeometryOps#

class t3toolbox.backend.geometry.UniformManifoldGeometryOps#

Bases: t3toolbox.backend.common.ValueHashedFields

The uniform manifold geometry at a fixed rank – the raw-supercore twin of t3toolbox.uniform_manifold.UNIFORM_MANIFOLD.

The uniform layer’s optimizer state is a bare (tucker_supercore, tt_supercore) pair, so the rank structure the operations need – the mode shape, the plain-UT3 masks, and the variation var_masks – lives here instead, loop-invariant and value-hashed (docs/uniform_backend_jit_recipe.md: hold the masks as state, trace only the supercores). Build it from the point you are about to optimize with from_point(), or – with a frame of that point already in hand, as the frontend local model has – with from_frame() (the same geometry, no re-orthogonalization).

The uniform layer requires a minimal-rank start (uniform_minimal()): from a non-minimal frame the retraction truncates to the realizable rank, which no longer matches the fixed masks held here.

shape: t3toolbox.backend.common.typ.Tuple[int, ...]#
masks: t3toolbox.backend.common.typ.Tuple#
var_masks: t3toolbox.backend.common.typ.Tuple#
groups: t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Tuple[int, ...], ...] = ()#
property n_stack: int#

|C|, the frame stack rank (0 for a single tensor). The tucker edge mask is (d,) + C + (n,), so the stack is everything between.

Return type:

int

Methods#

from_point(x0_data[, sharing])

The geometry at x0's fixed rank. The variation masks come from x0's orthogonal

from_frame(frame_data, plain_masks[, sharing])

The geometry at the fixed rank of a frame already in hand -- from_point() without the

with_sharing(sharing)

This geometry restricted to tied Tucker factors (sharing=None gives it back unshared).

frame(x_sc)

The orthonormal frame at x_sc, using this geometry's held shape and rank masks.

stack_shape(x_sc)

The point's frame stack C. The uniform Tucker supercore is (d,) + C + (nD, N).

base_point(frame_data)

The bare supercore pair (D, L) the frame is attached to.

precompute(frame_data)

The per-frame SF-T3 companion when tied, None otherwise (see

project(frame_data, var_sc[, aux])

The gauge projection Pi (plus the tied post-pass when shared); bare pair in and out.

retract(frame_data, var_sc[, aux])

The manifold retraction (the tied embedding + grouped SVD when shared); bare pair out.

inner(a_sc, b_sc)

The MASKED coordinate <.,.> over bare variation pairs, so padding is never summed;

point_norm_sq(x_sc)

‖X‖² = ‖v_X‖² in the masked coordinate metric.

point_tangent(frame_data)

The attachment point as a gauged tangent v_X (the direct construction).

zero_point_frame(frame_data)

The canonical frame at the zero tensor (see ManifoldGeometryOps.zero_point_frame()).

with_frame(frame_data)

The geometry whose variation masks are frame_data's own (from_frame with its down and left masks).

aligned_padded_frame(x0, x_old, project, hint[, ...])

The aligned padded frame of x0 from x_old: ufv_aligned_padded_frame().

require_frame_structure(x_cores, frame)

Check frame against the held structure: its variation masks, boundary bonds, shape and widths (no orthogonalization).

curvature_precompute(frame_data, misfit_gradient, aux, ...)

The uniform twin of ManifoldGeometryOps.curvature_precompute(): the same per-frame data on

lift(frame_data, var_sc, curvature_data)

Coordinates -> raw core variations of the base point (D, L), theta_hat, the lift of v, on bare

lift_transpose(frame_data, core_var_sc, curvature_data)

Raw core variations -> UNGAUGED coordinates, L^T y (the exact adjoint of lift()), on bare

tangential_curvature(frame_data, core_directions, ...)

K_{grad f} theta_hat at the base point, on bare supercore pairs: the uniform T3-T3 two-hole