log

ivy.log(x, f=None)[source]

Computes natural logarithm of x element-wise.

Parameters
  • x (array) – Value to compute log for.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

The natural logarithm of each element of x.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty