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) 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 frame (compares corewise on the variations, like__sub__()); for tangents at different bases, compare dense.- Parameters:
other (UT3Tangent)
rtol (float)
atol (float)
- Return type: