R/api.R
nv_promote_to_common.Rd
Promote arrays to a common data type, see common_dtype for more details.
common_dtype
nv_promote_to_common(...)
(arrayish) Arrays to promote.
arrayish
(list() of arrayish)
list()
x <- nv_array(1L) y <- nv_array(1.5) # integer is promoted to float nv_promote_to_common(x, y) #> [[1]] #> AnvlArray #> 1 #> [ CPUf32{1} ] #> #> [[2]] #> AnvlArray #> 1.5000 #> [ CPUf32{1} ] #>