T3Tangent.allclose#

t3toolbox.manifold.T3Tangent.allclose(other, rtol=1e-09, atol=0.0)#
def allclose(
        self,
        other:  'T3Tangent',  # 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 base point (compares corewise on the variations, like __sub__()); for tangents at different bases compare dense.

Parameters:
  • other (T3Tangent)

  • rtol (float)

  • atol (float)

Return type:

NDArray