Generate a tiled array by repeating an array's contents along a specified dimension. More...
AFAPI array tile (const array &in, const unsigned x, const unsigned y=1, const unsigned z=1, const unsigned w=1) C++ Interface to generate a tiled array. More...Generate a tiled array by repeating an array's contents along a specified dimension.
Creates copies of the input array and concatenates them with each other, such that the output array will have as many copies of the input array as the user specifies along each dimension. In this sense, the output array is a set of "tiles" where each copy of the input array, including the original, is a "tile".
Given below are some examples. The input array looks like this:
float hA[] = {0, 1, 2, 3, 4, 5};
array A(3, 2, hA);
Here, the input array is tiled along the first dimenson, 2 times:
Here, the input is tiled along the second dimension, 3 times:
Lastly, one can also tile along multiple dimensions simultaneously. Here, the input is tiled 2 times in the first dimension and 3 times in the second dimension:
◆ af_tile()C Interface to generate a tiled array.
Note, x
, y
, z
, and w
include the original in the count.
C++ Interface to generate a tiled array.
Each component of dims
includes the original in the count. Thus, if no duplicates are needed in a certain dimension, it is left as 1, the default value for just one copy.
in
is copied along each dimension
1
, const unsigned z = 1
, const unsigned w = 1
)
C++ Interface to generate a tiled array.
Note, x
, y
, z
, and w
include the original in the count.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4