function
sub
sub[type: DType, simd_width: Int](x: SIMD[type, simd_width], y: SIMD[type, simd_width]) -> SIMD[$0, $1]
Performs elementwise subtraction 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]
): SIMD vector which y will be subtracted from. - y (
SIMD[type, simd_width]
): SIMD vector to subtract from x.
Returns:
Elementwise subtraction of SIMD vector y x - y).