valarray::cshift
valarray::cshift
valarray<T> cshift(int n) const;
The member function returns an object of class valarray
<T>
, of length size
()
, each of whose elements I
is (*this)[(I + n) % size()]
. Thus, if element zero is taken as the leftmost element, a positive value of n
shifts the elements circularly left n
places.