Tile an array
rray_tile(x, times)
x | A vector, matrix, array or rray. |
---|---|
times | An integer vector. The number of times to repeat the array along an axis. |
x
with dimensions repeated as described by times
.
rray_tile()
should not be used as a replacement for rray_broadcast()
,
as it is generally less efficient.
#> [,1] #> [1,] 1 #> [2,] 2 #> [3,] 3 #> [4,] 4 #> [5,] 5 #> [6,] 1 #> [7,] 2 #> [8,] 3 #> [9,] 4 #> [10,] 5#> [,1] [,2] [,3] #> [1,] 1 1 1 #> [2,] 2 2 2 #> [3,] 3 3 3 #> [4,] 4 4 4 #> [5,] 5 5 5 #> [6,] 1 1 1 #> [7,] 2 2 2 #> [8,] 3 3 3 #> [9,] 4 4 4 #> [10,] 5 5 5#> , , 1 #> #> [,1] [,2] #> [1,] 1 1 #> [2,] 2 2 #> [3,] 3 3 #> [4,] 4 4 #> [5,] 5 5 #> #> , , 2 #> #> [,1] [,2] #> [1,] 1 1 #> [2,] 2 2 #> [3,] 3 3 #> [4,] 4 4 #> [5,] 5 5 #>