For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
log
log[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width] where dtype.is_floating_point()
Performs elementwise natural log (base E) 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[dtype, width]): Vector to perform logarithm operation on.
Returns:
SIMD[dtype, width]: Vector containing result of performing natural log base E on x.