ManifoldGeometryOps.curvature_precompute#
- t3toolbox.backend.geometry.ManifoldGeometryOps.curvature_precompute(frame, misfit_gradient, aux, curvature_damping)#
def curvature_precompute( self, frame: typ.Tuple, # (D, U, L, R) misfit_gradient: typ.Tuple, # Pi J^T omega^2 r: the model's ONE misfit transpose aux: typ.Any, # self.precompute(frame) curvature_damping: typ.Optional[float], # RELATIVE to ||X||_HS; None -> DEFAULT_CURVATURE_DAMPING ) -> typ.Optional[ManifoldCurvatureData]: # None iff the curvature term vanishes here (d = 1)
The per-frame curvature data of the exact Riemannian Hessian
H p = Pi J^T omega^2 J Pi p + Pi L^T (K_{A^T omega^2 r} - K_{grad f}) L Pi p: the liftL’s damped factors ateps = curvature_damping * ||X||_HS(fv_lift_factors()), the misfit gradient as a doubled-rank T3zand its inner-product sweep at the base point (the tangential termK_{grad f}), and the smallest lift singular value (a diagnostic).Noneatd = 1: there every slot is at maximal rank, the representable set is open inR^N(flat), and the curvature term is exactly zero, so the work is skipped – a cost shortcut; the formula needs no special case and gives zero there numerically.Shared (
groups): the shared set is parametrized asPhi(T theta_sh),Tcopying each group’s factor, so its Hessian is the same formula through the TIED lift – one factor direction per group,Bdot_g = M_g^{+eps} [V_i1; ...]againstaux’s stacked-SSVD (fv_tied_lift_factors()), its adjoint summing the group’s copies – withmisfit_gradientthe TIED gradient (whatproject()withauxreturns), so the normal part is the shared manifold’s;hvp’s outer projection ties the result. The smallest lift singular value then reads each group’s spectrums_gin place of its modes’ own. A zero-padded restart’s news_glevels filter to exactly 0, so the gated tied channel gets no curvature.- Parameters:
frame (t3toolbox.backend.common.typ.Tuple)
misfit_gradient (t3toolbox.backend.common.typ.Tuple)
aux (t3toolbox.backend.common.typ.Any)
curvature_damping (t3toolbox.backend.common.typ.Optional[float])
- Return type:
t3toolbox.backend.common.typ.Optional[ManifoldCurvatureData]