Skip to main content
Log in

Mojo function

compact_order

compact_order(shape: IntTuple[origin], order: IntTuple[origin]) -> IntTuple

Create a compact stride such that lower order number implies faster varying stride. A shape and a compact stride forms a layout that is bijective.