For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
is_bit_linear
def is_bit_linear[L: TensorLayout]() -> Bool
Returns whether a static layout is linear over F2.
It is when every mode's extent is a power of two, every stride is zero or a power of two, and no two coordinate bits reach the same offset bit, so adding offsets never carries.
Parameters:
- L (
TensorLayout): The layout.
Returns:
Bool: True when placement[L]() describes L exactly.