Skip to contents

Element-wise natural logarithm. You can also use log().

Usage

nv_log(x)

Arguments

x

(arrayish)
Input array.

Value

arrayish
Has the same shape and data type as the input.

See also

prim_log() for the underlying primitive.

Examples

x <- nv_array(c(1, 2.718, 7.389))
log(x)
#> AnvlArray
#>  0.0000
#>  0.9999
#>  2.0000
#> [ CPUf32{3} ]