Mojo function
nextafter
nextafter[type: DType, simd_width: Int](arg0: SIMD[type, simd_width], arg1: SIMD[type, simd_width]) -> SIMD[type, simd_width]
Computes next representable value of arg0
in the direction of arg1
.
Constraints:
The element type of 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:
- arg0 (
SIMD[type, simd_width]
): The first input argument. - arg1 (
SIMD[type, simd_width]
): The second input argument.
Returns:
The nextafter
of the inputs.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!