1. A method for generating a result vector with incremented values from an input vector, comprising: receiving the input vector and a control vector, and optionally receiving a predicate vector, wherein each vector includes N elements; recording a value from an element at a key element position in the input vector into a base value; and generating the result vector, wherein generating the result vector involves, if the predicate vector is received, for each element in the result vector to the right of the key element position for which a corresponding element in the predicate vector contains a non-zero value, otherwise, for each element in the result vector to the right of the key element position, setting the element in the result vector equal to the base value plus a number of relevant elements in the result vector from an element at the key element position in the result vector to and including a predetermined element in the result vector.