frame_has_minimal_ranks#
- t3toolbox.backend.ranks.frame_has_minimal_ranks(shape, up_ranks, down_ranks, left_ranks, right_ranks)#
def frame_has_minimal_ranks( shape: typ.Sequence[int], up_ranks: typ.Sequence[int], down_ranks: typ.Sequence[int], left_ranks: typ.Sequence[int], right_ranks: typ.Sequence[int], ) -> bool:
True if a T3Frame with these (redundant) ranks is structurally minimal.
Requires the left/right and up/down rank stores to agree, and the up/left ranks to equal the minimal ranks for the shape.
- Parameters:
shape (t3toolbox.backend.common.typ.Sequence[int])
up_ranks (t3toolbox.backend.common.typ.Sequence[int])
down_ranks (t3toolbox.backend.common.typ.Sequence[int])
left_ranks (t3toolbox.backend.common.typ.Sequence[int])
right_ranks (t3toolbox.backend.common.typ.Sequence[int])
- Return type:
bool