Skip to main content

module

simd

Implements SIMD struct.

These are Mojo built-ins, so you don't need to import them.

Aliases

  • Scalar = SIMD[?, 1]: Represents a scalar dtype.
  • Int8 = SIMD[int8, 1]: Represents an 8-bit signed scalar integer.
  • UInt8 = SIMD[uint8, 1]: Represents an 8-bit unsigned scalar integer.
  • Int16 = SIMD[int16, 1]: Represents a 16-bit signed scalar integer.
  • UInt16 = SIMD[uint16, 1]: Represents a 16-bit unsigned scalar integer.
  • Int32 = SIMD[int32, 1]: Represents a 32-bit signed scalar integer.
  • UInt32 = SIMD[uint32, 1]: Represents a 32-bit unsigned scalar integer.
  • Int64 = SIMD[int64, 1]: Represents a 64-bit signed scalar integer.
  • UInt64 = SIMD[uint64, 1]: Represents a 64-bit unsigned scalar integer.
  • BFloat16 = SIMD[bfloat16, 1]: Represents a 16-bit brain floating point value.
  • Float16 = SIMD[float16, 1]: Represents a 16-bit floating point value.
  • Float32 = SIMD[float32, 1]: Represents a 32-bit floating point value.
  • Float64 = SIMD[float64, 1]: Represents a 64-bit floating point value.

Structs

  • SIMD: Represents a small vector that is backed by a hardware vector element.