function
ulp
ulp[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Computes the ULP (units of last place) or (units of least precision) of the number.
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]
): SIMD vector input.
Returns:
The ULP of x.