Skip to main content
Log in

Mojo struct

ComposedLayout

struct ComposedLayout[LayoutA: LayoutTrait, LayoutB: LayoutTrait, offset: OptionalReg[Int] = OptionalReg(0)]

Fields

  • layout_a (LayoutA):
  • layout_b (LayoutB):

Implemented traits

AnyType, Copyable, LayoutTrait, UnknownDestructibility

Methods

__init__

__init__(out self, layout_a: LayoutA, layout_b: LayoutB)

__copyinit__

__copyinit__(out self, other: Self)

__call__

__call__(self, idx: IntTuple[origin]) -> Int

__call__(self, idx: IntTuple[origin], offset_val: Int) -> Int

size

size(self) -> Int

cosize

cosize(self) -> Int

has_shape

static has_shape() -> Bool