api / koma / ln

ln

fun ln(arr:Matrix<Double>):Matrix<Double>

Returns a matrix of the natural logarithm of each element in the input matrix.

Parameters

arr - An arbitrarily sized matrix

Return A matrix consisting of the operation performed element-wise.

fun ln(arr:Double):Double fun ln(arr:Int):Double

A convenience function performing the log operation via the kotlin.math equivalent call.