Skip to main content

Mojo function

remainder

remainder[dtype: DType, width: Int, //](x: SIMD[dtype, width], y: SIMD[dtype, width]) -> SIMD[dtype, width]

Computes the remainder of the inputs.

Constraints:

The input must be a floating-point type.

Parameters:

  • ​dtype (DType): The dtype of the input and output SIMD vector.
  • ​width (Int): The width of the input and output SIMD vector.

Args:

  • ​x (SIMD): The first input argument.
  • ​y (SIMD): The second input argument.

Returns:

SIMD: The remainder of the inputs.

Was this page helpful?