corewise_equal#
- t3toolbox.corewise.corewise_equal(X, Y)#
def corewise_equal( X: NDArrayTree, # tree of arrays Y: NDArrayTree, # tree to compare against ) -> bool: # single bool: bitwise-identical trees
Bitwise equality of two array trees: the same nesting structure and every leaf
np.array_equal(shape and values exactly). ReturnsFalseon ANY mismatch – structure, shape, or values – and never raises: representational equality is a total question (thenp.array_equalconvention). The representation-level half of the library’s explicit equality checks (the numerical half is each class’sallclose).- Parameters:
X (NDArrayTree)
Y (NDArrayTree)
- Return type:
bool