# mxnet.ndarray.log1p¶

mxnet.ndarray.log1p(data=None, out=None, name=None, **kwargs)

Returns element-wise log(1 + x) value of the input.

This function is more accurate than log(1 + x) for small x so that $$1+x\approx 1$$

The storage type of log1p output depends upon the input storage type:

• log1p(default) = default
• log1p(row_sparse) = row_sparse
• log1p(csr) = csr

Defined in src/operator/tensor/elemwise_unary_op_basic.cc:L1015

Parameters: data (NDArray) – The input array. out (NDArray, optional) – The output NDArray to hold the result. out – The output of this function. NDArray or list of NDArrays