Mojo 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.
Constraints:
The input must be a floating-point type.
Parameters:
- type (
DType
): Thedtype
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]
): The input values.
Returns:
A tuple of two SIMD vectors containing the fractional and exponent parts of the input floating point values.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?