IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

read_x

def read_x[row_count: Int, dtype: DType](src: Pointer[Scalar[dtype], _safe=False], start_index: Int)

Stores row_count rows from AMX X registers starting at start_index to memory at src.

Parameters:

  • ​row_count (Int): Number of X register rows to store; must be 1 or 2.
  • ​dtype (DType): Element type of the X register rows.

Args:

  • ​src (Pointer[Scalar[dtype], _safe=False]): Destination memory address for the stored rows.
  • ​start_index (Int): Starting X register row index to store from.

Was this page helpful?