T3Variations.allclose#

t3toolbox.frame_variations_format.T3Variations.allclose(other, rtol=1e-09, atol=0.0)#
def allclose(self, other: 'T3Variations', rtol: float = 1e-9, atol: float = 0.0) -> NDArray:  # bool array, stack

True (per stack element) if other holds the same variations as self, corewise.

Checks ||self - other|| <= atol + rtol * ||other|| in the stack-vectorized corewise norm (t3toolbox.corewise.corewise_stack_norm()), one verdict per stack slice (reduce with .all() for a single bool). Split-agnostic, like all T3Variations operations.

Parameters:
Return type:

NDArray