Prototypes | Header File(s) | |
template <class T> | ||
RWMathVec<T> |
reverse(const RWMathVec<T>&) |
<rw/math/mathvec.h> |
Takes a vector x as an argument and returns a vector y whose elements are in reversed order. For example, if x = [ 2, 5, 1, 6], then y = [ 6, 1, 5, 2]. The reversed vector y is actually a reversed slice of the original vector. Hence, the results of this function can be used as an lvalue.