function
mod
mod[type: DType, simd_width: Int](x: SIMD[type, simd_width], y: SIMD[type, simd_width]) -> SIMD[$0, $1]
Performs elementwise modulo operation of two SIMD vectors.
Parameters:
- type (
DType
): DType of the input SIMD vectors. - simd_width (
Int
): Width of the input SIMD vectors.
Args:
- x (
SIMD[type, simd_width]
): The numerator of the operation. - y (
SIMD[type, simd_width]
): The denominator of the operation.
Returns:
The remainder of x divided by y.