def repeat_first_axis(array, count):
 return as_strided(array, ((count,) + array.shape), ((0,) + array.strides))

def repeat_first_axis ( array , count ) : return as_strided ( array , ( ( count , ) + array . shape ) , ( ( 0 , ) + array . strides ) )
restride array to repeat count times along the first axis .