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 trait
Storable
StoreAccess refined with the callable store method.
Implemented traitsβ
comptime membersβ
dtypeβ
comptime dtype
rankβ
comptime rank
ShapeTypeβ
comptime ShapeType
Required methodsβ
storeβ
def store[width: Int, element_alignment: Int = Int(1)](self, idx: Coord, value: SIMD[Self.dtype, width])
Stores a SIMD vector of elements at idx.
Parameters:
- βwidth (
Int): Number of elements to store. - βelement_alignment (
Int): Assumed alignment of the store in elements.
Args:
- βidx (
Coord): The element coordinate to store to. - βvalue (
SIMD[_Self.dtype, width]): TheSIMD[Self.dtype, width]value to write.
shapeβ
def shape(self) -> Self.ShapeType
Returns the tensor's runtime shape.
Returns:
_Self.ShapeType: The shape as a Coord of the argument's ShapeType.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!