Mojo function
ldexp[dtype: DType, width: Int, //](x: SIMD[dtype, width], exp: SIMD[DType.int32, width]) -> SIMD[dtype, width]
Computes elementwise ldexp function.
The ldexp function multiplies a floating point value x by the number 2 raised to the exp power. I.e. calculate the value of and is used within the function.
Parameters:
- dtype (
DType): Thedtypeof the input and output SIMD vector. - width (
Int): The width of the input and output SIMD vector.
Args:
Returns:
SIMD: Vector containing elementwise result of ldexp on x and exp.