diff options
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index f214eb603..c06b0cf98 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1445,6 +1445,7 @@ def roll(a, shift, axis=None): array([8, 9, 0, 1, 2, 3, 4, 5, 6, 7]) >>> np.roll(x, -2) array([2, 3, 4, 5, 6, 7, 8, 9, 0, 1]) + >>> x2 = np.reshape(x, (2,5)) >>> x2 array([[0, 1, 2, 3, 4], |