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 struct

KOffsetKind

struct KOffsetKind

Describes how to compute the K offset for a load operation.

K offsets are relative to the loop variable k in the main loop, expressed as multiples of BK.

Fields​

  • ​bk_multiple (Int):

Implemented traits​

AnyType, Copyable, Equatable, ImplicitlyCopyable, ImplicitlyDestructible, Movable

comptime members​

K0​

comptime K0 = KOffsetKind(0)

K1​

comptime K1 = KOffsetKind(1)

K_NEXT​

comptime K_NEXT = KOffsetKind(2)

K_PREV​

comptime K_PREV = KOffsetKind(3)

NONE​

comptime NONE = KOffsetKind(255)

Methods​

signed_bk_multiple​

signed_bk_multiple(self) -> Int

Return the signed BK multiplier (K_PREV=3 maps to -1).

Returns:

Int