symmray.flat.flat_data_common¶
Common interface methods for arrays or vectors with flat backend storage.
Classes¶
Mixin class for flat arrays. |
Module Contents¶
- class symmray.flat.flat_data_common.FlatCommon[source]¶
Mixin class for flat arrays.
- __slots__ = ('_blocks', '_sectors', 'backend')¶
- property sectors¶
The stack of sector keys, with shape (num_blocks, ndim). Each row represents a sector of a corresponding block, and each column represents a charge in a given axis.
- property blocks¶
The stack of array blocks, with shape (num_blocks, *shape_block), i.e. ndim + 1 dimensions, where the first dimension is the block index, which should match the first dimension of sectors, and the rest are the dimensions of individual blocks.
- property dtype¶
Get the dtype name for the blocks.