aesara.tensor.tile

Contents

aesara.tensor.tile#

aesara.tensor.tile(x, reps, ndim=None)[source]#

Tile input array x according to reps.

See the docstring of numpy.tile for details.

‘reps’ can be constant integer (e.g. 3), constant vector(e.g. [2 3]), symbolic scalar (e.g. tensor.iscalar()), symbolic vector (e.g. tensor.ivector()) or a list of symbolic scalar (e.g. [tensor.iscalar(), tensor.iscalar()]).

ndim is the number of the dimensions of the output, if it is provided, ndim should be equal or larger than x.ndim and len(reps), otherwise, we will use max(x.ndim, len(reps)) as ndim. If reps is symbolic vector, the ndim has to be provided.