Mojo function
exp2
exp2[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Computes elementwise 2 raised to the power of n, where n is an element of the input 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 exp2 on.
Returns:
SIMD: Vector containing computed elementwise, where n is an element in
the input SIMD vector.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!