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) ifotheris the same tangent vector asselfat the same frame.Checks
||self - other|| <= atol + rtol * ||other||viacorewise_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.