Mojo function
eval_composed
eval_composed[composed_layout: ComposedLayout[composed_layout.offset]](idx: UInt, offset: UInt = 0) -> UInt
Evaluate a composed layout with swizzle.
Applies the base layout, adds an optional offset, and then applies the swizzle.
Parameters:
- โcomposed_layout (
ComposedLayout): The composed layout to evaluate.
Args:
- โidx (
UInt): The input index to transform. - โoffset (
UInt): Optional offset to apply between layouts (default: 0).
Returns:
UInt: The transformed index after applying both layouts.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!