Mojo function
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:
A new layout representing the right inverse of the input layout.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!