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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?