Skip to main content

function

log

log[type: DType, simd_width: Int](x: SIMD[type, simd_width]) -> SIMD[$0, $1]

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

Parameters:

  • type (DType): The dtype 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 natural log base E on x.