mlx.core.log#

log(a: array, /, *, stream: None | Stream | Device = None) array#

Element-wise natural logarithm.

Parameters:

a (array) – Input array.

Returns:

The natural logarithm of a.

Return type:

array