mlx.core.log#

mlx.core.log(a: array, /, *, stream: Union[None, Stream, Device] = None) array#

Element-wise natural logarithm.

Parameters:

a (array) – Input array.

Returns:

The natural logarithm of a.

Return type:

array