def array_crator(arr, new_shape):
    repeat_dims = np.divide(new_shape, arr.shape) + 1
return np.delete(a.repeat(repeat_dims[1], axis=1).repeat(repeat_dims[0],
    axis=0), np.s_[new_shape[1]:], 1)[:new_shape[0]]
Fill larger matrix from smaller matrix