tile

Contents

tile#

class brainunit.math.tile(A, reps, **kwargs)#

Construct a quantity or an array by repeating A the number of times given by reps.

Parameters:
  • A (Array | saiunit.Quantity) – The input array.

  • reps (int | Tuple[int, ...]) – The number of repetitions of A along each axis.

Returns:

res – The tiled output array.

Return type:

Array | saiunit.Quantity

Examples

>>> import saiunit as u
>>> a = [1, 2, 3] * u.meter
>>> u.math.tile(a, 2)