Functions return a vector view of a subvector of another vector v.
The start of the new vector is offset by offset elements from the start of the original vector. The new vector has n elements. Mathematically, the i-th element of the new vector v' is given by, v'(i) = v->data[(offset + i)*v->stride] where the index i runs from 0 to n-1. |