T3FrameWeights.allclose#

t3toolbox.frame_variations_format.T3FrameWeights.allclose(other, rtol=None, atol=None)#
def allclose(
        self,
        other: 'T3FrameWeights',

        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 (C); scalar unstacked; reduce with .all()

True where the four weight families are numerically equal, per stack element (norm-based: atol + rtol * max(||self||, ||other||)). Structural mismatches raise. Bitwise: corewise_equal(); == is undefined.

Parameters:
  • other (T3FrameWeights)

  • rtol (t3toolbox.backend.common.typ.Optional[float])

  • atol (t3toolbox.backend.common.typ.Optional[float])

Return type:

NDArray