You can't do this; a NumPy array must have a consistent stride along each dimension, while your strides would need to go one way most of the time but sometimes jump backwards.
The closest you can get is either a 1000-row 2D array where every row is a view of your first array, or a flatiter
object, which behaves kind of like a 1D array. (flatiters support iteration and indexing, but you can't take views of them; all indexing makes a copy.)
Setup:
import numpy as np
a = np.arange(10)
2D view:
b = np.lib.stride_tricks.as_strided(a, (1000, a.size), (0, a.itemsize))
flatiter object:
c = b.flat
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…