Skip to main content

Mojo function

isqrt

isqrt[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[dtype, width]): SIMD vector to perform reciprocal square root on.

Returns:

The elementwise reciprocal square root of x.

Was this page helpful?