Outer product of two vectors
     
    
    Usage
    outer(X, Y, FUN = "*", ...)
# S3 method for class 'mlx'
outer(X, Y, FUN = "*", ...)
 
    
    Arguments
- X, Y
- Numeric vectors or mlx arrays. 
- FUN
- Function to apply (for default method). 
- ...
- Additional arguments passed to methods. 
 
    
    Value
    For mlx inputs, an mlx matrix. Otherwise delegates to base::outer.
     
    
    
    Examples
    x <- as_mlx(c(1, 2, 3))
y <- as_mlx(c(4, 5))
outer(x, y)
#> mlx array [3 x 2]
#>   dtype: float32
#>   device: gpu
#>   values:
#>      [,1] [,2]
#> [1,]    4    5
#> [2,]    8   10
#> [3,]   12   15