Skip to main content
Log in

Mojo function

remainder

remainder[type: DType, simd_width: Int, //](x: SIMD[type, simd_width], y: SIMD[type, simd_width]) -> SIMD[$0, $1]

Computes the remainder of the inputs.

Constraints:

The input must be a floating-point type.

Parameters:

  • ​type (DType): The dtype 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 first input argument.
  • ​y (SIMD[type, simd_width]): The second input argument.

Returns:

The remainder of the inputs.

Was this page helpful?