UT3Tangent.allclose#

t3toolbox.uniform_manifold.UT3Tangent.allclose(other, rtol=1e-09, atol=0.0)#
def allclose(
        self,
        other:  'UT3Tangent',  # compared at the SAME base point (corewise, like __sub__)
        rtol:   float = 1e-9,
        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 * ||other|| via corewise_norm(), per stacked element (reduce with .all() for a single verdict). Assumes a shared frame (compares corewise on the variations, like __sub__()); for tangents at different bases, compare dense.

Parameters:
Return type:

NDArray