Skip to main content

function

rsqrt

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

Performs elementwise reciprocal square root on the elements of a SIMD vector.

Parameters:

  • type (DType): The dtype of the input and output SIMD vector.
  • simd_width (Int): The width of the input and output SIMD vector.

Args:

  • x (SIMD[type, simd_width]): SIMD vector to perform reciprocal square root on.

Returns:

The elementwise reciprocal square root of x.