Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mu python replicate array n times

# Just use tile method which multiplies the array with given shape 
# and reshape method to structure it. 

x=np.tile(x,(3,1))
y=x.reshape(x.shape[0]*x.shape[1])
 
PREVIOUS NEXT
Tagged: #mu #python #replicate #array #times
ADD COMMENT
Topic
Name
7+6 =