R/api.R
nv_log2.Rd
Element-wise base-2 logarithm. You can also use log2().
log2()
nv_log2(operand)
(arrayish) Operand.
arrayish
arrayish Has the same shape and data type as the input.
nv_log(), nv_log10()
nv_log()
nv_log10()
x <- nv_array(c(1, 2, 4, 8)) nv_log2(x) #> AnvlArray #> 0 #> 1 #> 2 #> 3 #> [ CPUf32{4} ]