Mojo function
log2
log2[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Performs elementwise log (base 2) of 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): Vector to perform logarithm operation on.
Returns:
SIMD: 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!