Mojo function
recip
recip[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Performs elementwise reciprocal on a SIMD vector.
Parameters:
- โdtype (
DType): Thedtypeof the input and output SIMD vector. - โwidth (
Int): The width of the input and output SIMD vector.
Args:
- โx (
SIMD): SIMD vector to perform reciprocal on.
Returns:
SIMD: The elementwise reciprocal of x.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!