Name
repeat
Synopsis
repeat(a
,repeat
,axis
=0)
Returns an array with the same type code and rank as
a
, where each of
a
’s elements is repeated
along axis
as many times as the value of
the corresponding element of repeat
.
repeat
is an integer, or an integer
sequence of length
a
.shape[
axis
]
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.