function
log2
log2[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Performs elementwise log (base 2) 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]
): Vector to perform logarithm operation on.
Returns:
Vector containing result of performing log base 2 on x.