function
exp2
exp2[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Computes elementwise 2 raised to the power of n, where n is an element of the input 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]
): SIMD vector to perform exp2 on.
Returns:
Vector containing computed elementwise, where n is an element in the input SIMD vector.