Skip to main content

Mojo function

rsqrt

rsqrt[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]

Performs elementwise reciprocal square root on a SIMD vector.

Parameters:

  • โ€‹dtype (DType): The dtype of the input and output SIMD vector.
  • โ€‹width (Int): The width of the input and output SIMD vector.

Args:

  • โ€‹x (SIMD): SIMD vector to perform reciprocal square root on.

Returns:

SIMD: The elementwise reciprocal square root of x.

Was this page helpful?