Skip to main content

Mojo module

index

Implements IndexList which is commonly used to represent N-D indices.

You can import these APIs from the utils package. For example:

from utils import IndexList
from utils import IndexList

Structs

  • IndexList: A base struct that implements size agnostic index functions.

Functions

  • Index: Constructs a 1-D Index from the given value.
  • product: Computes a product of values in the tuple up to the given index.