For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
right_inverse
right_inverse(layout: Layout) -> Layout
Creates a right inverse of a layout.
The right inverse of a layout maps memory indices back to logical coordinates. This is useful for converting between different memory layouts.
Args:
- layout (
Layout): The layout to invert.
Returns:
Layout: A new layout representing the right inverse of the input layout.