function
add
add[type: DType, simd_width: Int](x: SIMD[type, simd_width], y: SIMD[type, simd_width]) -> SIMD[$0, $1]
Performs elementwise addition 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]
): First SIMD vector to add. - y (
SIMD[type, simd_width]
): Second SIMD vector to add.
Returns:
Elementwise addition of x and y.