Skip to contents

Element-wise base-2 logarithm. You can also use log2().

Usage

nv_log2(operand)

Arguments

operand

(arrayish)
Operand.

Value

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

See also

Examples

x <- nv_array(c(1, 2, 4, 8))
nv_log2(x)
#> AnvlArray
#>  0
#>  1
#>  2
#>  3
#> [ CPUf32{4} ]