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