Tile an array
Examples
x <- mlx_matrix(1:4, 2, 2)
mlx_tile(x, reps = c(1, 2))
#> mlx array [2 x 4]
#> dtype: float32
#> device: gpu
#> values:
#> [,1] [,2] [,3] [,4]
#> [1,] 1 3 1 3
#> [2,] 2 4 2 4
Tile an array
x <- mlx_matrix(1:4, 2, 2)
mlx_tile(x, reps = c(1, 2))
#> mlx array [2 x 4]
#> dtype: float32
#> device: gpu
#> values:
#> [,1] [,2] [,3] [,4]
#> [1,] 1 3 1 3
#> [2,] 2 4 2 4