Skip to contents

Computes the outer product of two 1-D arrays.

Usage

nv_outer(lhs, rhs)

Arguments

lhs, rhs

(arrayish)
1-D arrays.

Value

arrayish
A 2-D array of shape (length(lhs), length(rhs)).

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