Skip to contents

Promote arrays to a common data type, see common_dtype for more details.

Usage

nv_promote_to_common(...)

Arguments

...

(arrayish)
Arrays to promote.

Value

(list() of arrayish)

Examples

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} ] 
#>