UT3Tangent.allclose#

t3toolbox.uniform_manifold.UT3Tangent.allclose(other, rtol=None, atol=0.0)#
def allclose(
        self,
        other:  'UT3Tangent',  # at the SAME frame (checked, like __sub__)

        rtol:   typ.Optional[float] = None,  # None: the ambient jax-aware default (safety.comparison_rtol)
        atol:   float = 0.0,
) -> NDArray:  # bool array, shape = stack_shape (K+C); scalar when unstacked

True (per stack element) if other is the same tangent vector as self at the same frame.

Checks ||self - other|| <= atol + rtol * max(||self||, ||other||) via corewise_norm() (masked; padding don’t-care), per stacked element (reduce with .all()). The same-frame precondition is checked (by -, as for arithmetic). Bitwise (frame AND variations, padding included): corewise_equal(); == is intentionally not defined – say which you mean.

Parameters:
  • other (UT3Tangent)

  • rtol (t3toolbox.backend.common.typ.Optional[float])

  • atol (float)

Return type:

NDArray