Hi, I hope this is the correct place to post this as this is my first (potential) contribution to numpy.
I would like to implement a function numpy.shift which would work similarly to numpy.roll, with one key difference. After shifting an array by a value `shift`, the function fills the missing values with a `fill_value` For example shifting the following array by 1 along axis 1with fill_value of 0 arr = array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]) would result in arr = array([[0, 0, 1, 2, 3], [0, 5, 6, 7, 8]]) Kind regards, Filippo Tagliacarne
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com