IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo module

layout_tensor

Provides the LayoutTensor type for representing multidimensional data.

comptime values​

binary_op_type​

comptime binary_op_type = def[dtype: DType, width: SIMDLength](lhs: SIMD[dtype, width], rhs: SIMD[dtype, width]) thin -> SIMD[dtype, width]

Type alias for binary operations on SIMD vectors.

This type represents a function that takes two SIMD vectors of the same type and width and returns a SIMD vector of the same type and width.

Args: dtype: The data type of the SIMD vector elements. width: The width of the SIMD vector. lhs: Left-hand side SIMD vector operand. rhs: Right-hand side SIMD vector operand.

Returns: A SIMD vector containing the result of the binary operation.

Structs​

Functions​

Was this page helpful?