Enum ShapeCompatibility

Enum Documentation

enum class sequant::opt::ShapeCompatibility

Determines under which conditions an intermediate may take over the name (and thereby the storage) of another intermediate

Values:

enumerator ExactBlock

The tensors must have the exact same block structure: the same number of bra, ket and aux slots, the same sequence of index bases (including proto-index bases) and the same symmetries

enumerator IndexMultiset

In addition to ExactBlock, tensors without any symmetry and without null slots are compatible if the index bases within each of their bra, ket and aux slot groups are the same up to permutation. The recycling tensor’s indices are then rearranged to match the layout of the recycled tensor.