Skip to main content
Log in

Mojo module

simd

Implements SIMD struct.

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

Aliases

  • 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.
  • Int16 = SIMD[int16, 1]: Represents a 16-bit signed scalar integer.
  • Int32 = SIMD[int32, 1]: Represents a 32-bit signed scalar integer.
  • Int64 = SIMD[int64, 1]: Represents a 64-bit signed scalar integer.
  • Int8 = SIMD[int8, 1]: Represents an 8-bit signed scalar integer.
  • Scalar = SIMD[?, 1]: Represents a scalar dtype.
  • UInt16 = SIMD[uint16, 1]: Represents a 16-bit unsigned scalar integer.
  • UInt32 = SIMD[uint32, 1]: Represents a 32-bit unsigned scalar integer.
  • UInt64 = SIMD[uint64, 1]: Represents a 64-bit unsigned scalar integer.
  • UInt8 = SIMD[uint8, 1]: Represents an 8-bit unsigned scalar integer.

Structs

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

Was this page helpful?