Ask Your Question
2

What is the counterpart of numpy.roll that performs a circular shift on a vector?

asked 2023-06-08 12:35:32 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-08 12:50:02 +0000

david gravatar image

The counterpart of numpy.roll that performs a circular shift on a vector is numpy.roll(a, shift=len(a)-1) or numpy.roll(a, shift=-1)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-08 12:35:32 +0000

Seen: 13 times

Last updated: Jun 08 '23