Skip to main content

function

frexp

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

Breaks floating point values into a fractional part and an exponent part.

Parameters:

  • type (DType): The dtype of the input and output SIMD vector. Constraints: must be a floating-point type.
  • simd_width (Int): The width of the input and output SIMD vector.

Args:

  • x (SIMD[type, simd_width]): The input values.

Returns:

A tuple of two SIMD vectors containing the fractional and exponent parts of the input floating point values.