Skip to main content
Log in

Mojo struct

TileMask

struct TileMask[rank: Int, element_size: IndexList[rank] = IndexList(1), element_stride: IndexList[rank] = IndexList(1)]

Fields

  • max_dim (IndexList[rank]):
  • offset (IndexList[rank]):

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, UnknownDestructibility

Methods

__init__

__init__(out self, max_dim: IndexList[rank], offset: IndexList[rank] = IndexList(0))

access_mask

access_mask(self, point: IndexList[rank]) -> StaticTuple[Bool, rank]

access_size

access_size(self, point: IndexList[rank], dim_mask: StaticTuple[Bool, rank]) -> IndexList[rank]