T3Tangent.gauge_residual#
- t3toolbox.manifold.T3Tangent.gauge_residual()#
def gauge_residual(self) -> NDArray: # shape = variation stack K+C (scalar/0-d when unstacked)
Max absolute gauge-condition violation, per stack element (shape = variation stack
K+C; atol-independent; cached).The expensive part of
is_gauged()– a fixed tangent reused across an inner loop (e.g. the safe-mode GAUGE precondition ofManifoldGeometry.inner()) is contracted once.- Return type: