T3Variations.allclose#
- t3toolbox.frame_variations_format.T3Variations.allclose(other, rtol=None, atol=None)#
def allclose( self, other: 'T3Variations', rtol: typ.Optional[float] = None, # None: the ambient jax-aware default (safety.comparison_rtol) atol: typ.Optional[float] = None, # None: 0.0 ) -> NDArray: # bool, shape = stack_shape (K+C); scalar unstacked; reduce with .all()
True where the variation cores are numerically equal (coordinate-level), per stack element:
||self - other|| <= atol + rtol * max(||self||, ||other||)in the corewise norm. Structural mismatches raise. Bitwise:corewise_equal();==is undefined.- Parameters:
other (T3Variations)
rtol (t3toolbox.backend.common.typ.Optional[float])
atol (t3toolbox.backend.common.typ.Optional[float])
- Return type: