Skip to main content
Log in

Mojo function

log

log(x: SIMD[type, size]) -> SIMD[$0, $1]

Performs elementwise natural log (base E) of a SIMD vector.

Args:

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

Returns:

Vector containing result of performing natural log base E on x.

Was this page helpful?