UT3Tangent.gauge_residual#

t3toolbox.uniform_manifold.UT3Tangent.gauge_residual()#
def gauge_residual(self) -> NDArray:  # shape = variation stack K+C (scalar/0-d when unstacked); cached

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 of the manifold inner product) is contracted once. See utv_gauge_residual().

Return type:

NDArray