Closed ChengYen-Tang closed 2 years ago
Isn't the first axis numbered as 0, i.e., a.roll(5, 0)
?
But in despite of this, I get the same exception with an array of shape (100, 400, 9):
a = a[":", ":", 0].roll(1, 0)
I tried different parameters. I always get an exception. I also don't find a unit test for roll
.
@OJacot-Descombes I found a more complete package, maybe you can try it. https://github.com/Quansight-Labs/numpy.net
I get the following message when using np.roll. Index was outside the bounds of the array