Skip to main content
Log in

Mojo function

log2

log2(x: SIMD[type, size]) -> SIMD[type, size]

Performs elementwise log (base 2) of a SIMD vector.

Args:

  • x (SIMD[type, size]): Vector to perform logarithm operation on.

Returns:

Vector containing result of performing log base 2 on x.