R/api.R
nv_outer.Rd
Computes the outer product of two 1-D arrays.
nv_outer(x, y)
(arrayish) 1-D arrays.
arrayish
arrayish A 2-D array of shape (length(x), length(y)).
(length(x), length(y))
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} ]