shift

Returns a new array where the elements have been shifted a set amount.

  valarray<T> shift(int n) const;
  
Remarks

Returns the modified array.