function
reciprocal
reciprocal[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Takes the elementwise reciprocal of a SIMD vector.
Parameters:
- type (
DType
): Thedtype
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 SIMD vector to perform elementwise reciprocal on.
Returns:
A SIMD vector the elementwise reciprocal of x.