Skip to contents

Computes the outer product of two 1-D arrays.

Usage

nv_outer(x, y)

Arguments

x, y

(arrayish)
1-D arrays.

Value

arrayish
A 2-D array of shape (length(x), length(y)).

Examples

x <- nv_array(c(1, 2, 3))
y <- nv_array(c(4, 5))
nv_outer(x, y)
#> AnvlArray
#>   4  5
#>   8 10
#>  12 15
#> [ CPUf32{3,2} ]