Skip to main content

function

div

div[type: DType, simd_width: Int](x: SIMD[type, simd_width], y: SIMD[type, simd_width]) -> SIMD[$0, $1]

Performs elementwise division of two SIMD vectors.

Parameters:

  • type (DType): DType of the input SIMD vectors.
  • simd_width (Int): Width of the input SIMD vectors.

Args:

  • x (SIMD[type, simd_width]): SIMD vector containing the dividends.
  • y (SIMD[type, simd_width]): SIMD vector containing the quotients.

Returns:

Elementwise division of SIMD vector x by SIMD vector y (this is x / y).