Skip to content

Document invariants degeneracystructure relies on from sectorstructure #549

Description

@lkdvos

degeneracystructure strides sectorstructure's flat tree list assuming: (1) contiguous grouping by coupled sector, (2) f₂-major/f₁-minor ordering, (3) every f₂ for a given c has the same number n₁ of f₁ partners. Only documented as "canonical order"; only checked post-hoc via a length assertion. Also relies on _blocksectors guaranteeing n₁ ≥ 1 (a fact that lives in a different file: homspace.jl). Document these invariants explicitly (docstring + a cheap debug assertion) since they're load-bearing for tensor data layout.

src/spaces/structure.jl:41-72 (producer), :131-184 (consumer).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions