pub fn ln<T: Float + Signed, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
) -> Result<Array<T, D>, LogCodecError>
Expand description
Compute ln(x)
over the elements of the input data
array.
ยงErrors
Errors with
LogCodecError::NonPositiveData
if any data element is non-positive (negative or zero)LogCodecError::NonFiniteData
if any data element is non-finite (infinite or NaN)